[Mono-list] Compile error with current cvs

Gonzalo Paniagua Javier gonzalo@ximian.com
02 Feb 2003 23:33:16 +0100


El vie, 31-01-2003 a las 18:29, Lluis Sanchez escribi:
> *** Warning: linker path does not have real file for library -lgc.
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have
> *** because I did check the linker path looking for a file starting
> *** with libgc but no candidates were found. (...for file magic test)
> *** The inter-library dependencies that have been dropped here will be
> *** automatically added whenever a program is linked with this library
> *** or is declared to -dlopen it.

I also get this warning.

> .libs/win32-exception.o(.text+0x26): In function `seh_handler':
> /home/Lluis/mono/mono/jit/win32-exception.c:51: undefined reference to
> `_g_malloc'
> .libs/codegen-x86.o(.text+0x3241): In function `mono_burg_emit_16':
> /home/Lluis/mono/mono/jit/codegen-x86.c:1257: undefined reference to
> `__assert'
> .libs/codegen-x86.o(.text+0x3269):/home/Lluis/mono/mono/jit/codegen-x86.c:12
> 57: undefined reference to `__assert'
> .libs/codegen-x86.o(.text+0x330c):/home/Lluis/mono/mono/jit/codegen-x86.c:12
> 57: undefined reference to `__assert'
> .libs/codegen-x86.o(.text+0x4227): In function `mono_burg_emit_23':
> /home/Lluis/mono/mono/jit/codegen-x86.c:1385: undefined reference to
> `_g_log'
> .libs/codegen-x86.o(.text+0x5495): In function `mono_burg_emit_26':
> /home/Lluis/mono/mono/jit/codegen-x86.c:1482: undefined reference to
> `__assert'
> 
> ... and so on.
> 
> I have gc.dll (the one from libgc-6.1-dev.zip) copied in my install/lib
> folder, and all gc headers in install/include/gc.

...but this looks like another problem. Do you have glib2 installed and
PKG_CONFIG_PATH properly set?

-Gonzalo