[Mono-dev] Building Mono from source and Embedding Mono
Robert Jordan
robertj at gmx.net
Mon Aug 21 10:58:35 EDT 2006
Hey,
Please don't cross post!
> I'm trying to embed mono in a C++ application on Windows and I keep
> getting a link error saying that mono_jit_init(const char *) is not
> found. I am using `pkg-config mono --cflags --libs` as an option to
> g++ and it looks like it should be working, but still I get this
> error.
jit/jit.h is missing this:
extern "C" { ... }
or
G_BEGIN_DECLS
...
G_END_DECLS
Try to include it this way until the header gets fixed:
extern "C" {
#include <mono/jit/jit.h>
}
Robert
More information about the Mono-devel-list
mailing list