Hello all, 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' C:/cygwin/Mono105/lib/libmono.a(domain.o)(.text+0x39b):/download/mono-1.0.5/ mono/mono/metadata/domain.c:191: undefined reference to `__imp__GC_register_finalizer' C:/cygwin/Mono105/lib/libmono.a(object.o)(.text+0xebf): In function `mono_class_vtable': /download/mono-1.0.5/mono/mono/metadata/object.c:547: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(object.o)(.text+0x2e7c): In function `mono_object_new_fast': /download/mono-1.0.5/mono/mono/metadata/object.c:1667: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(object.o)(.text+0x2ecc): In function `mono_object_new_alloc_specific': /download/mono-1.0.5/mono/mono/metadata/object.c:1667: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(object.o)(.text+0x2f6b): In function `mono_object_clone': /download/mono-1.0.5/mono/mono/metadata/object.c:1667: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(object.o)(.text+0x3171): In function `mono_array_new_full': /download/mono-1.0.5/mono/mono/metadata/object.c:1923: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(object.o)(.text+0x3235):/download/mono-1.0.5 /mono/mono/metadata/object.c:1667: more undefined references to `__imp__GC_malloc' follow C:/cygwin/Mono105/lib/libmono.a(appdomain.o)(.text+0x2849): In function `unload_thread_main': /download/mono-1.0.5/mono/mono/metadata/appdomain.c:1218: undefined reference to `__imp__GC_gcollect' C:/cygwin/Mono105/lib/libmono.a(aot.o)(.text+0x3e5): In function `load_aot_module': /download/mono-1.0.5/mono/mono/mini/aot.c:163: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(aot.o)(.text+0xb02): In function `mono_aot_get_method_inner': /download/mono-1.0.5/mono/mono/mini/aot.c:364: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(threads.o)(.text+0x1b10): In function `mono_alloc_static_data': /download/mono-1.0.5/mono/mono/metadata/threads.c:1624: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(threads.o)(.text+0x1b22):/download/mono-1.0. 5/mono/mono/metadata/threads.c:1612: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(mono-hash.o)(.text+0x48): In function `mono_g_hash_table_new_full': /download/mono-1.0.5/mono/mono/utils/mono-hash.c:152: undefined reference to `__imp__GC_malloc' C:/cygwin/Mono105/lib/libmono.a(mono-hash.o)(.text+0x8b):/download/mono-1.0. 5/mono/mono/utils/mono-hash.c:163: more undefined references to `__imp__GC_malloc' follow C:/cygwin/Mono105/lib/libmono.a(reflection.o)(.text+0x109): In function `alloc_table': /download/mono-1.0.5/mono/mono/metadata/reflection.c:165: undefined reference to `__imp__GC_realloc' [...] C:/cygwin/Mono105/lib/libmono.a(process.o)(.text+0x1f32): In function `ves_icall_System_Diagnostics_Process_ProcessName_internal': /download/mono-1.0.5/mono/mono/metadata/process.c:1011: undefined reference to [EMAIL PROTECTED]' C:/cygwin/Mono105/lib/libmono.a(process.o)(.text+0x1f5f):/download/mono-1.0. 5/mono/mono/metadata/process.c:1016: undefined reference to [EMAIL PROTECTED]' C:/cygwin/Mono105/lib/libmono.a(process.o)(.text+0x1fcb): In function `ves_icall_System_Diagnostics_Process_GetProcesses_internal': /download/mono-1.0.5/mono/mono/metadata/process.c:1041: undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status Can you help me? Javier Miguel _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
