[Mono-dev] Building with Visual Studio 2005

Rusmin Susanto rusminsusanto at yahoo.com
Mon Jul 10 03:40:15 EDT 2006

  I am trying to build Mono with Visual Studio 2005. I managed to build it. However, when I run mono, I got the following error message:
  "Thread %p calling into managed code is not registered with the GC. On UNIX, this can be fixed by #include-ing <gc.h> before <pthread.h> in the file "
  After debugging, I found that the following function returns 0 because both GC_DLL and GC_INSIDE_DLL are not defined. This function should return 1.
  int GC_thread_is_registered (void)
#if defined(GC_DLL) || defined(GC_INSIDE_DLL)
 /* Registered by DllMain */
 return 1;
 /* FIXME: */
 return 0;
  I try to modify the code and guess where to define GC_DLL and GC_INSIDE_DLL. But still no luck so far.
Can someone tell me what's wrong? Where should I define GC_DLL and GC_INSIDE_DLL ? Or what should I do?

Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060710/07f00f5d/attachment.html 

More information about the Mono-devel-list mailing list