[plt-scheme] 205 build trouble

From: Anton van Straaten (anton at appsolutions.com)
Date: Thu Oct 2 04:29:17 EDT 2003

I'm getting an error building v205, in wxcommon/Region.cxx, while 
compiling src/wxxt/src/Pen+Brush.cc. Both line 685 and 721 of Region.cxx 
have statements of the form "... = new WXGC_ATOMIC char[...];", and the 
messages indicate maybe it's not picking up the necessary declarations 
for 'new':

make[5]: Entering directory `/usr/local/src/plt/src/wxxt/src'
g++ -c -I/usr/X11R6/include -I./../../mzscheme/gc -I./../../wxxt/src/AIAI-include -I./../../wxxt/src -I./../../mred/wxme/ -I./../../mzscheme/include/ -DNO_XKB_LIB_PRESENT -DUSE_GL -DWX_USE_XRENDER -DWX_USE_XFT -DWX_USE_LIBPNG -DWX_USE_LIBJPEG -Dwx_xt  -Wall  -g -O2  -MMD -I. -I./XWidgets -o GDI-Classes/Pen+Brush.o ./GDI-Classes/Pen+Brush.cc
In file included from GDI-Classes/Pen+Brush.cc:302:
<internal>: In member function `void wxRegion::Put(const char*)':
<internal>:685: too many arguments to function `void* operator new [](unsigned 
   int)'
../../wxcommon/Region.cxx:685: at this point in file
<internal>: In member function `char* wxPSRgn_Composite::MakeString(const 
   char*, const char*, const char*)':
<internal>:721: too many arguments to function `void* operator new [](unsigned 
   int)'
../../wxcommon/Region.cxx:721: at this point in file
make[5]: *** [GDI-Classes/Pen+Brush.o] Error 1
make[5]: Leaving directory `/usr/local/src/plt/src/wxxt/src'


I haven't yet tried to track this down further, but I have a feeling I'm 
doing something dumb, and I'm hoping someone else can point out what it 
might be.  I'm using gcc 3.2.1, if that makes a difference - I think the 
last time I built PLT on Linux, it was v202.5 and I used gcc 2.9.x.

Anton




Posted on the users mailing list.