My ENV is RedHat 7.2 , g++ 2.96, glib 2.96
But when I compiled from directory src, I got following errors:
:
:
/usr/bin/g++ -c -g -pg -Wall -ftemplate-depth-30 -DUSE_NAMESPACES -I../include allocator.cc -o allocator.o
allocator.cc: In method `allocator_ns::Pool::Pool (const
allocator_ns::Pool &)':
<internal>:413: too many arguments to function `void *operator new
(unsigned int)'
allocator.cc:413: at this point in file
allocator.cc: In method `allocator_ns::Pool
&allocator_ns::Pool::operator= (const allocator_ns::Pool &)':
<internal>:463: too many arguments to function `void *operator new
(unsigned int)'
allocator.cc:463: at this point in file
allocator.cc: In method `void allocator_ns::Pool::grow ()':
<internal>:690: too many arguments to function `void *operator new
(unsigned int)'
allocator.cc:690: at this point in file
../include/arena.h: In method `void arena::Arena<Memory_Type>::grow
(int) [with Memory_Type = mem_space::shared]':
../include/arena.h:408: instantiated from `arena::Arena<Memory_Type>::alloc (unsigned int) [with Memory_Type = mem_space::shared]'
allocator.cc:411: instantiated from here
<internal>:190: too many arguments to function `void *operator new
(unsigned int)'
../include/arena.h:190: at this point in file
make: *** [allocator.o] Error 1
It seems a stupid question, but could you help me figure out the problem?
Thanks,
Jim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Marc,
My ENV is RedHat 7.2 , g++ 2.96, glib 2.96
But when I compiled from directory src, I got following errors:
:
:
/usr/bin/g++ -c -g -pg -Wall -ftemplate-depth-30 -DUSE_NAMESPACES -I../include allocator.cc -o allocator.o
allocator.cc: In method `allocator_ns::Pool::Pool (const
allocator_ns::Pool &)':
<internal>:413: too many arguments to function `void *operator new
(unsigned int)'
allocator.cc:413: at this point in file
allocator.cc: In method `allocator_ns::Pool
&allocator_ns::Pool::operator= (const allocator_ns::Pool &)':
<internal>:463: too many arguments to function `void *operator new
(unsigned int)'
allocator.cc:463: at this point in file
allocator.cc: In method `void allocator_ns::Pool::grow ()':
<internal>:690: too many arguments to function `void *operator new
(unsigned int)'
allocator.cc:690: at this point in file
../include/arena.h: In method `void arena::Arena<Memory_Type>::grow
(int) [with Memory_Type = mem_space::shared]':
../include/arena.h:408: instantiated from `arena::Arena<Memory_Type>::alloc (unsigned int) [with Memory_Type = mem_space::shared]'
allocator.cc:411: instantiated from here
<internal>:190: too many arguments to function `void *operator new
(unsigned int)'
../include/arena.h:190: at this point in file
make: *** [allocator.o] Error 1
It seems a stupid question, but could you help me figure out the problem?
Thanks,
Jim
add a header file in allocate.h
#include <new>
babido
sorry
allocate.h -> allocator.cc
babido
babido,
Thanks, it works.
Jim
Try upgrading to gcc-3.0.4
Marc