Re: [Gc] Trouble locating gc.h with gcc/MinGW

Ivan Maidanski ivmai at mail.ru
Thu Sep 13 09:13:47 PDT 2012


Hi Andrew,

1. GC version from CVS is outdated, please use either Git repository or gc7.2d tarball.

2. Copy boehmtest.c to GC folder
3. Execute: gcc -I include boehmtest.c extra/gc.c

Regards,
Ivan

Wed, 12 Sep 2012 21:26:45 -0400 Andrew Pennebaker <andrew.pennebaker at gmail.com>:
> 
> I have download, configured, compiled, and installed BoehmGC in MinGW, but when I try to compile a test program that uses BoehmGC, gcc fails to find the library.
> 
> $ make
> gcc -o boehmtest boehmtest.c -lgc
> boehmtest.c:3:16: fatal error: gc.h: No such file or directory
> 
> I found gc.h in MinGW's /usr/local/include/gc directory, but adding -I/usr/local/include/gc and -L/usr/local/include/gc don't help.
> 
> Specs:
> * BoehmGC from cvs
> * gcc 4.5.2
> * MinGW 0.1-alpha-5.1
> * MSYS 1.0
> * Windows 7 Professional x64
> * MacBook Pro
> Cheers,
> 
> Andrew Pennebaker
> www.yellosoft.us
> 



More information about the Gc mailing list