diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-10-05 23:50:44 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-10-05 23:50:44 +0400 |
commit | b30ff3098863afa00f353dc20df660e7d1ce232a (patch) | |
tree | c680b9584f98019f61b42a0f6491afdffd5d1b76 /samples | |
parent | 2adb173c8648aaafe51e5323f02b58d6a772cd64 (diff) |
Update sample
svn path=/trunk/mono/; revision=8008
Diffstat (limited to 'samples')
-rw-r--r-- | samples/embed/teste.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/samples/embed/teste.c b/samples/embed/teste.c index 85fc07ffa65..ee7b84227d7 100644 --- a/samples/embed/teste.c +++ b/samples/embed/teste.c @@ -3,7 +3,7 @@ /* * Very simple mono embedding example. * Compile with: - * gcc -o teste teste.c `pkg-config --cflags --libs mono` + * gcc -o teste teste.c `pkg-config --cflags --libs mono` -lm * mcs test.cs * Run with: * ./teste test.exe @@ -21,8 +21,10 @@ main(int argc, char* argv[]) { const char *file; int retval; - if (argc < 2) + if (argc < 2){ + fprintf (stderr, "Please provide an assembly to load"); return 1; + } file = argv [1]; /* * mono_jit_init() creates a domain: each assembly is |