Pelles C forum
Pelles C => General discussions => Topic started by: kobold on January 07, 2006, 07:24:28 PM
-
Hi!
I tried to compile the gc garbage collector, but i don't know where to start, and how should i compile that? (no ppj file :wink: )
There are many great tools and packages out there, and compiling under linux would be no problem (some experiences, tons of manuals, makefiles), but windows?
-
Do you mean the Boehm gc ?
-
Yes, this one: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
-
Yes, this one: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
I made it work with lcc-win32, it should not be a problem making it work with PellesC.
edit: Try using the code from my converted version here.
http://www.johnfindlay.plus.com/lcc-win32/libs/gclib.zip
John
-
i once sucessfully build it using the MinGW tools
not sure if can build it using Pelles C
-
Try this, if you don't want to make it with New Project:
Extract gclib.zip from John site to gclib directory.
Open alloc.c with PellesC IDE.
Try to compile alloc.c
For "New default project", select "Win32 static library (LIB)".
With "Add files to project", add all .c files from that directory.
Rename project alloc.lib to gclib.lib
Make that project.
Close that project.
Rename alloc.ppj to gclib.ppj
This attachment is done by that way.
-
Hm... after a some tests i got the lib.
But a test program for leak detection doesn't print out any (warning) message :cry:
I will study the doc's...