[Gc] Static GC library for windows

Ben Hutchings ben.hutchings at businesswebsoftware.com
Mon Dec 12 10:04:28 PST 2005


Lothar Scholz wrote:

>Hello,
>
>I found the comment that if i link statically to the gc library, then
>i must use GC_INIT before any other operation and call GC_CreateThread
>instead of the WINAPI function. Thats okay.
>
>But there is also a comment that my program must define GC_WinMain as
>the collector needs to do some stuff in the original WinMain. Thats
>also okay.
>
>But where is the corresponding "main" function that i can use when
>writing a command line program instead of a win app ?
>  
>
The GC_WinMain function is only really needed on WinCE, and possibly not 
even there now. WinCE doesn't support command-line apps so there was no 
point in having a similar wrapper for main.

Ben.



More information about the Gc mailing list