[Mono-osx] Invoke CIL/Managed Code from ObjC/XCode on Mac
Paolo Molaro
lupus at ximian.com
Mon Oct 27 11:20:43 EDT 2008
On 10/25/08 Duane Wandless wrote:
> For me anyway I hit a bug in 2.0 that required me to load an EXE rather than
> a DLL.
It is not a bug in mono 2.0, it is a bug in your code because you didn't
call mono_jit_exec () at all or on an executable assembly.
> -I/Library/Frameworks/Mono.framework/Versions/2.0/include/mono-1.0
> -I/Library/Frameworks/Mono.framework/Versions/2.0/include/glib-2.0
> -I/Library/Frameworks/Mono.framework/Versions/2.0/lib/glib-2.0/include
> - Other C++ Flags = $(OTHER_CFLAGS)
> - OTHER_LDFLAGS = -pthread
> -L/Library/Frameworks/Mono.framework/Versions/Current/lib -lmono -lpthread
> -lm -lgthread-2.0 -lglib-2.0 -lintl -rpath at loader_path/../Libraries
As the documentation shows, you should use:
pkg-config --cflags mono
and
pkg-config --libs mono
Hardcoding the paths is incorrect as that will break with newer mono
versions.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-osx
mailing list