Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update sample

svn path=/trunk/mono/; revision=8008
  • Loading branch information...
commit b30ff3098863afa00f353dc20df660e7d1ce232a 1 parent 2adb173
Miguel de Icaza migueldeicaza authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 samples/embed/teste.c
6 samples/embed/teste.c
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.