[Mono-list] Mono embed

Paolo Molaro lupus@ximian.com
Wed, 19 Jan 2005 16:43:25 +0100


On 01/18/05 Javier Miguel Gonzalez wrote:
> Do I need to compile sources of Mono on Windows to use gcc with the embed
> samples?
> 
> Is possible to use gcc & Mono libs (gcc sample.c `pkg-config --cflags --libs
> mono`) with the Mono binary distribution?
> 
> I'm trying it but I get a large list of undefined references :
> 
> #gcc test-invoke.c -o test-invoke.exe -Wall -mno-cygwin
> `pkg-config --cflags --libs mono` -lm
> 
> C:/cygwin/Mono105/lib/libmono.a(domain.o)(.text+0x370): In function
> `mono_domain_create':
> /download/mono-1.0.5/mono/mono/metadata/domain.c:190: undefined reference to
> `__imp__GC_malloc'

I think you need to change the build system to tell gcc the list
of public functions to export from mono.dll (or whatever the name
of libmono ends up to be on windows). It may also be possible
that only a libmono.a was built. In any case someone
using windows needs to look into it.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better