[Gc] Building gc.lib and test under MSVC++ 4.0

Boehm, Hans hans.boehm at hp.com
Wed Sep 20 17:39:42 PDT 2006


The short answer is probably yes, you do want a more recent version.
Gc_cpp.h has slowly evolved to compensate for compiler changes, and I
generally can't test that we don't break old compilers in the process.
Very old versions of gc_cpp.* might work better.  Also note that these
files are fairly simple wrappers for the C interface, and can usually be
adapted without understanding much about collector internals.

Hans

> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of D.
> Sent: Wednesday, August 23, 2006 9:14 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] Building gc.lib and test under MSVC++ 4.0
> 
> Hi,
> 
> I would like to build the gc6.7 tests and gc.lib using
> MSVC++ 4.0. I am using the NT_STATIC_MAKEFILE.
> 
> I find that when I run the makefile, I get a huge number of 
> errors in gc_cpp.h and gc_cpp.cpp.
> 
> See below for example of errors.
> 
> Do I need a more recent version of MSVC++?
> 
> Any suggestions?
> 
> thanks,
> David
> 
> ...
> include\gc_cpp.h(309) : error C2092: array element type 
> cannot be function
> include\gc_cpp.h(309) : error C2433: 'delete' : 'inline' not 
> permitted on data declarations
> include\gc_cpp.h(309) : error C2239: unexpected token '{' 
> following declaration of 'delete'
> include\gc_cpp.h(360) : error C2092: array element type 
> cannot be function
> include\gc_cpp.h(360) : error C2433: 'new' : 'inline' not 
> permitted on data declarations
> include\gc_cpp.h(360) : error C2371: 'new' : redefinition; 
> different basic types
> include\gc_cpp.h(360) : error C2239: unexpected token '{' 
> following declaration of 'new'
> gc_cpp.CPP(37) : error C2092: array element type cannot be function
> gc_cpp.CPP(37) : error C2371: 'new' : redefinition; different 
> basic types
> gc_cpp.CPP(37) : error C2239: unexpected token '{' following 
> declaration of 'new'
> gc_cpp.CPP(40) : error C2092: array element type cannot be function
> gc_cpp.CPP(40) : error C2371: 'delete' : redefinition; 
> different basic types
> gc_cpp.CPP(40) : error C2239: unexpected token '{' following 
> declaration of 'delete'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> 
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
> 



More information about the Gc mailing list