Discussion:
Has anyone tried compiling Boehm GC libary with Cppbuilder?
(too old to reply)
Sean Cross
2007-12-03 21:12:13 UTC
Permalink
I am trying to compile the Boehm garbage collector library with RDS
2007. (see http://www.hpl.hp.com/personal/Hans_Boehm/gc/ and
http://codecentral.borland.com/Item/21646).

Unfortunately I can't get the provided make file to work (possibly coz I
know very little about c++). Has anybody tried it?

Sean
Darko Miletic
2007-12-04 17:59:00 UTC
Permalink
Post by Sean Cross
I am trying to compile the Boehm garbage collector library with RDS
2007. (see http://www.hpl.hp.com/personal/Hans_Boehm/gc/ and
http://codecentral.borland.com/Item/21646).
Unfortunately I can't get the provided make file to work (possibly coz I
know very little about c++). Has anybody tried it?
Open BCC_MAKEFILE in text editor

Locate this line:
bc= c:\Borland\BCC55

Change the path to wherever your cppbuilder is installed. If that path
contains spaces in it ( Program files\something etc.) it must be
converted to short DOS style path.

Locate these two:

gcinclude1 = $(bc)\gc6.2\include
gcinclude2 = $(bc)\gc6.2\cord

And change them to this:

gcinclude1 = .\include
gcinclude2 = .\cord

Locate line that starts with define= and make it look like this:

defines= -DSILENT -DALL_INTERIOR_POINTERS -DNO_GETENV
-DJAVA_FINALIZATION -DSILENT -DUSE_GENERIC -DGC_OPERATOR_NEW_ARRAY
-DUSE_GENERIC_PUSH_REGS

Locate line that starts with cflags= and make sure it looks like this:

cflags= -O2 -R -v- -vi -H -H=gc.csm \
-I$(bcinclude);$(gcinclude1);$(gcinclude2) -L$(bclib) \
-w-pro -w-aus -w-par -w-ccc -w-rch -a8

Save the file and rename it to ne called Makefile.

Open command prompt and execute Make. As a result you will get gc.lib
and couple of test executables.
Sean Cross
2007-12-04 19:37:45 UTC
Permalink
Thanks. I'll give that a shot.

Sean
Sean Cross
2007-12-05 07:54:47 UTC
Permalink
Darko Miletic <***@fibertel.com.ar> wrote:
...
Thanks. That compiles to give me a lib file. Is there anyway to get a dll?

Sean
Darko Miletic
2007-12-05 18:51:31 UTC
Permalink
Post by Sean Cross
....
Thanks. That compiles to give me a lib file. Is there anyway to get a dll?
Sean
Probably, but that is way out of my spare time for now.
Sean Cross
2007-12-05 19:36:49 UTC
Permalink
Post by Darko Miletic
Post by Sean Cross
....
Thanks. That compiles to give me a lib file. Is there anyway to get a dll?
Sean
Probably, but that is way out of my spare time for now.
Ok. Thanks for what you have done.

Sean

Loading...