compile error in NTAI

compile error in NTAI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

compile error in NTAI

Post by Tobi »

NTAI doesn't compile:
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
See also the buildbot.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: compile error in NTAI

Post by AF »

see the bits where ti says shared_ptr<IModule>(0);, replace them with shared_ptr<IModule>(); I wont have access to a machine with svn access today.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: compile error in NTAI

Post by Tobi »

Ok will do later in case no one else did it yet, have to go now.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: compile error in NTAI

Post by AF »

its ~11am I should be home with access to source+svn ~7/8pm
Post Reply

Return to “AI”