Groups > Borland > Borland C plus plus builder command line tools > Re: Has anyone tried compiling Boehm GC libary with Cppbuilder?




Has anyone tried compiling Boehm GC libary with Cppbuilder?

Has anyone tried compiling Boehm GC libary with Cppbuilder?
Tue, 04 Dec 2007 10:12:13 +130
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?

Post Reply
Re: Has anyone tried compiling Boehm GC libary with Cppbuilder?
Tue, 04 Dec 2007 14:59:00 -030
Sean Cross wrote:
> 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 
Post Reply
Re: Has anyone tried compiling Boehm GC libary with Cppbuilder?
5 Dec 2007 00:54:47 -0700
Darko Miletic <kiklop@fibertel.com.ar> wrote:
...
Thanks.  That compiles to give me a lib file.  Is there anyway to get a dll?  

Sean 
Post Reply
Re: Has anyone tried compiling Boehm GC libary with Cppbuilder?
Wed, 05 Dec 2007 08:37:45 +130
Thanks.  I'll give that a shot.

Post Reply
Re: Has anyone tried compiling Boehm GC libary with Cppbuilder?
Wed, 05 Dec 2007 15:51:31 -030
Sean Cross wrote:
> Darko Miletic <kiklop@fibertel.com.ar> wrote:
> ....
> Thanks.  That compiles to give me a lib file.  Is there anyway to get a
dll?  
> 
> Sean 
> 

Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact