Back to the Vavoom Forum Archives


Forum

[SVN 3141] vc_member.cpp fails to build with ZONE_DEBUG=ON

Mon, 11 Feb 2008 19:24:41

scen

source/vc_member.cpp fails to compile on my X86_64 linux box if i enable ZONE_DEBUG, bailing out with the following error:
usr/bin/x86_64-pc-linux-gnu-c++ -I/usr/include/SDL -I/usr/include/AL -Isource/-pthread   -DHAVE_INTTYPES_H=1 -DZONE_DEBUG=1 -o source/CMakeFiles/vavoom.dir/vc_member.o -c source/vc_member.cpp
source/array.h: In member function ‘void TArray<T>::Resize(int) [with T = char]’:
source/array.h:138:   instantiated from ‘void TArray<T>::SetNum(int, bool) [with T = char]’
source/vc_member.cpp:531:   instantiated from here
source/array.h:117: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
source/zone.h:49: note: candidate 1: void* operator new(size_t, const char*, int)
source/array.h:36: note: candidate 2: void* operator new(size_t, void*, EArrayNew)
source/array.h:117: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
source/zone.h:49: note: candidate 1: void* operator new(size_t, const char*, int)
source/array.h:36: note: candidate 2: void* operator new(size_t, void*, EArrayNew)
I'm using GCC-4.1.2 on Gentoo Linux AMD64.
Tue, 01 Apr 2008 13:13:21

Janis Legzdinsh

Fixed.

Back to the Vavoom Forum Archives