compile error in NTAI
Posted: 19 Nov 2008, 11:47
NTAI doesn't compile:
See also the buildbot.g++ -o build/AI/Global/NTai/AI/NTai/Units/CUnit.os -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=sse -msse -DUSE_PRECOMPILED_HEADER -pthread -fPIC -D_SZ_ONE_DIRECTORY -D_GNU_SOURCE=1 -D_REENTRANT -Irts -Irts/System -Irts/lib/luabind -Irts/lib/lua/include -Irts/lib/streflop -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include/python2.5 -I/usr/include/python2.4 -I/usr/include/java -Irts/ExternalAI AI/Global/NTai/AI/NTai/Units/CUnit.cpp
AI/Global/NTai/AI/NTai/Agents/CManufacturer.cpp:1654:10: warning: multi-character character constant
AI/Global/NTai/AI/NTai/Units/CUnit.cpp: In member function 'virtual void ntai::CUnit::RecieveMessage(CMessage&)':
AI/Global/NTai/AI/NTai/Units/CUnit.cpp:91: error: no matching function for call to 'boost::shared_ptr<ntai::IModule>::shared_ptr(int)'
/usr/include/boost/shared_ptr.hpp:144: note: candidates are: boost::shared_ptr<T>::shared_ptr() [with T = ntai::IModule]
/usr/include/boost/shared_ptr.hpp:131: note: boost::shared_ptr<ntai::IModule>::shared_ptr(const boost::shared_ptr<ntai::IModule>&)
AI/Global/NTai/AI/NTai/Units/CUnit.cpp: At global scope:
AI/Global/NTai/AI/NTai/Units/CUnit.cpp:105: error: expected unqualified-id before 'else'
AI/Global/NTai/AI/NTai/Units/CUnit.cpp:326: error: expected `}' at end of input
scons: *** [build/AI/Global/NTai/AI/NTai/Units/CUnit.os] Error 1
g++ -o build/AI/Global/NTai/AI/NTai/Units/CConfigTaskManager.os -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=sse -msse -DUSE_PRECOMPILED_HEADER -pthread -fPIC -D_SZ_ONE_DIRECTORY -D_GNU_SOURCE=1 -D_REENTRANT -Irts -Irts/System -Irts/lib/luabind -Irts/lib/lua/include -Irts/lib/streflop -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include/python2.5 -I/usr/include/python2.4 -I/usr/include/java -Irts/ExternalAI AI/Global/NTai/AI/NTai/Units/CConfigTaskManager.cpp
AI/Global/NTai/AI/NTai/Units/CConfigTaskManager.cpp: In member function 'virtual boost::shared_ptr<ntai::IModule> ntai::CConfigTaskManager::GetNextTask()':
AI/Global/NTai/AI/NTai/Units/CConfigTaskManager.cpp:49: error: no matching function for call to 'boost::shared_ptr<ntai::IModule>::shared_ptr(int)'
/usr/include/boost/shared_ptr.hpp:144: note: candidates are: boost::shared_ptr<T>::shared_ptr() [with T = ntai::IModule]
/usr/include/boost/shared_ptr.hpp:131: note: boost::shared_ptr<ntai::IModule>::shared_ptr(const boost::shared_ptr<ntai::IModule>&)
g++ -o build/AI/Global/NTai/AI/NTai/Units/CUnitTypeData.os -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=sse -msse -DUSE_PRECOMPILED_HEADER -pthread -fPIC -D_SZ_ONE_DIRECTORY -D_GNU_SOURCE=1 -D_REENTRANT -Irts -Irts/System -Irts/lib/luabind -Irts/lib/lua/include -Irts/lib/streflop -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/ogg -I/usr/include/vorbis -I/usr/include/python2.5 -I/usr/include/python2.4 -I/usr/include/java -Irts/ExternalAI AI/Global/NTai/AI/NTai/Units/CUnitTypeData.cpp
scons: *** [build/AI/Global/NTai/AI/NTai/Units/CConfigTaskManager.os] Error 1