Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-10-05 23:50:44 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-10-05 23:50:44 +0400
commitb30ff3098863afa00f353dc20df660e7d1ce232a (patch)
treec680b9584f98019f61b42a0f6491afdffd5d1b76 /samples
parent2adb173c8648aaafe51e5323f02b58d6a772cd64 (diff)
Update sample
svn path=/trunk/mono/; revision=8008
Diffstat (limited to 'samples')
-rw-r--r--samples/embed/teste.c6
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