Added just the part where CCmp... begins. CCmpAIManager.cpp In file included from ../../../source/simulation2/components/CCmpAIManager.cpp:20: ../../../source/simulation2/system/Component.h:20:2: warning: #warning XXXX In file included from ../../../source/simulation2/system/Component.h:22, from ../../../source/simulation2/components/CCmpAIManager.cpp:20: ../../../source/simulation2/system/Components.h:20:2: warning: #warning YYYY In file included from ../../../libraries/spidermonkey-tip/include-unix/release/js/jspubtd.h:47, from ../../../libraries/spidermonkey-tip/include-unix/release/js/jsapi.h:49, from ../../../source/scriptinterface/ScriptTypes.h:39, from ../../../source/scriptinterface/ScriptInterface.h:25, from ../../../source/simulation2/system/ComponentManager.h:23, from ../../../source/simulation2/system/Component.h:23, from ../../../source/simulation2/components/CCmpAIManager.cpp:20: ../../../libraries/spidermonkey-tip/include-unix/release/js/jsval.h:154: warning: redundant redeclaration of ‘void js_static_assert(int*)’ in same scope ../../../libraries/spidermonkey-tip/include-unix/release/js/jsval.h:120: warning: previous declaration of ‘void js_static_assert(int*)’ ../../../libraries/spidermonkey-tip/include-unix/release/js/jsval.h:168: warning: redundant redeclaration of ‘void js_static_assert(int*)’ in same scope ../../../libraries/spidermonkey-tip/include-unix/release/js/jsval.h:154: warning: previous declaration of ‘void js_static_assert(int*)’ In file included from ../../../source/simulation2/components/CCmpAIManager.cpp:21: ../../../source/simulation2/components/ICmpAIManager.h: In static member function ‘static int ICmpAIManager::GetInterfaceId()’: ../../../source/simulation2/components/ICmpAIManager.h:53: error: ‘IID_AIManager’ was not declared in this scope In file included from ../../../source/simulation2/components/CCmpAIManager.cpp:24: ../../../source/lib/timer.h: In member function ‘void TimerUnit::AddDifferenceAtomic(TimerUnit, TimerUnit)’: ../../../source/lib/timer.h:178: warning: dereferencing type-punned pointer will break strict-aliasing rules In file included from ../../../source/simulation2/components/CCmpAIManager.cpp:29: ../../../source/simulation2/components/ICmpAIInterface.h: In static member function ‘static int ICmpAIInterface::GetInterfaceId()’: ../../../source/simulation2/components/ICmpAIInterface.h:32: error: ‘IID_AIInterface’ was not declared in this scope In file included from ../../../source/simulation2/components/CCmpAIManager.cpp:37: ../../../source/simulation2/serialization/SerializeTemplates.h: At global scope: ../../../source/simulation2/serialization/SerializeTemplates.h:117: error: expected ‘,’ or ‘...’ before ‘::’ token ../../../source/simulation2/serialization/SerializeTemplates.h:117: error: ISO C++ forbids declaration of ‘ICmpPathfinder’ with no type ../../../source/simulation2/serialization/SerializeTemplates.h:123: error: ‘ICmpPathfinder’ has not been declared ../../../source/simulation2/serialization/SerializeTemplates.h:123: error: expected ‘,’ or ‘...’ before ‘&’ token ../../../source/simulation2/serialization/SerializeTemplates.h: In member function ‘void SerializeWaypoint::operator()(ISerializer&, const char*, int)’: ../../../source/simulation2/serialization/SerializeTemplates.h:119: error: ‘value’ was not declared in this scope ../../../source/simulation2/serialization/SerializeTemplates.h: At global scope: ../../../source/simulation2/serialization/SerializeTemplates.h:117: warning: unused parameter ‘ICmpPathfinder’ ../../../source/simulation2/serialization/SerializeTemplates.h: In member function ‘void SerializeWaypoint::operator()(IDeserializer&, const char*, int)’: ../../../source/simulation2/serialization/SerializeTemplates.h:125: error: ‘value’ was not declared in this scope ../../../source/simulation2/serialization/SerializeTemplates.h: At global scope: ../../../source/simulation2/serialization/SerializeTemplates.h:123: warning: unused parameter ‘Waypoint’ ../../../source/simulation2/serialization/SerializeTemplates.h:133: error: ‘ICmpPathfinder’ has not been declared ../../../source/simulation2/serialization/SerializeTemplates.h:133: error: expected ‘,’ or ‘...’ before ‘&’ token ../../../source/simulation2/serialization/SerializeTemplates.h: In member function ‘void SerializeGoal::operator()(S&, const char*, int)’: ../../../source/simulation2/serialization/SerializeTemplates.h:135: error: ‘ICmpPathfinder’ was not declared in this scope ../../../source/simulation2/serialization/SerializeTemplates.h:135: error: wrong number of template arguments (1, should be 2) ../../../source/simulation2/serialization/SerializeTemplates.h:87: error: provided for ‘template<class T, T max> struct SerializeU8_Enum’ ../../../source/simulation2/serialization/SerializeTemplates.h:135: error: ‘value’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp: At global scope: ../../../source/simulation2/components/CCmpAIManager.cpp:72: error: ‘ScriptRuntime’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp:72: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:239: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:239: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:239: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:239: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:239: error: template argument 2 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:247: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:247: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:247: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:247: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:247: error: template argument 2 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:280: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:280: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:280: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:428: error: ‘ScriptRuntime’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp:428: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:436: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:436: error: ‘StructuredClone’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:436: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp: In constructor ‘CAIWorker::CAIPlayer::CAIPlayer(CAIWorker&, const std::wstring&, player_id_t, const int&, boost::rand48&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:73: error: no matching function for call to ‘ScriptInterface::ScriptInterface(const char [7], const char [3], const int&)’ ../../../source/scriptinterface/ScriptInterface.h:69: note: candidates are: ScriptInterface::ScriptInterface(const char*, const char*) ../../../source/scriptinterface/ScriptInterface.h:59: note: ScriptInterface::ScriptInterface(ScriptInterface&) ../../../source/simulation2/components/CCmpAIManager.cpp: In static member function ‘static void CAIWorker::CAIPlayer::PostCommand(void*, CScriptValRooted)’: ../../../source/simulation2/components/CCmpAIManager.cpp:102: error: request for member ‘push_back’ in ‘self->CAIWorker::CAIPlayer::m_Commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:102: error: ‘class ScriptInterface’ has no member named ‘WriteStructuredClone’ ../../../source/simulation2/components/CCmpAIManager.cpp: In static member function ‘static void CAIWorker::CAIPlayer::DumpImage(void*, std::wstring, std::vector<unsigned int, std::allocator<unsigned int> >, uint32_t, uint32_t, uint32_t)’: ../../../source/simulation2/components/CCmpAIManager.cpp:140: error: ‘tex_write’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘bool CAIWorker::CAIPlayer::LoadScripts(const std::wstring&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:158: error: ‘class ScriptInterface’ has no member named ‘LoadGlobalScriptFile’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘bool CAIWorker::CAIPlayer::Initialise(bool)’: ../../../source/simulation2/components/CCmpAIManager.cpp:192: error: ‘class CScriptVal’ has no member named ‘undefined’ ../../../source/simulation2/components/CCmpAIManager.cpp:208: error: no matching function for call to ‘ScriptInterface::CallConstructor(const long long unsigned int&, const long long unsigned int&)’ ../../../source/scriptinterface/ScriptInterface.h:92: note: candidates are: jsval ScriptInterface::CallConstructor(jsval) ../../../source/simulation2/components/CCmpAIManager.cpp:214: error: ‘class ScriptInterface’ has no member named ‘NewObjectFromConstructor’ ../../../source/simulation2/components/CCmpAIManager.cpp:217: error: ‘class CScriptVal’ has no member named ‘undefined’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CAIWorker::CAIPlayer::Run(CScriptVal)’: ../../../source/simulation2/components/CCmpAIManager.cpp:229: error: request for member ‘clear’ in ‘((CAIWorker::CAIPlayer*)this)->CAIWorker::CAIPlayer::m_Commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp: In constructor ‘CAIWorker::CAIWorker()’: ../../../source/simulation2/components/CCmpAIManager.cpp:251: error: ‘CreateRuntime’ is not a member of ‘ScriptInterface’ ../../../source/simulation2/components/CCmpAIManager.cpp:253: error: no matching function for call to ‘ScriptInterface::ScriptInterface(const char [7], const char [3], int&)’ ../../../source/scriptinterface/ScriptInterface.h:69: note: candidates are: ScriptInterface::ScriptInterface(const char*, const char*) ../../../source/scriptinterface/ScriptInterface.h:59: note: ScriptInterface::ScriptInterface(ScriptInterface&) ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CAIWorker::LoadEntityTemplates(const std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const CParamNode*>, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, const CParamNode*> > >&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:317: error: ‘const class CParamNode’ has no member named ‘ToJSVal’ ../../../source/simulation2/components/CCmpAIManager.cpp:323: error: ‘class ScriptInterface’ has no member named ‘FreezeObject’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CAIWorker::SerializeState(ISerializer&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:353: error: request for member ‘size’ in ‘((boost::shared_ptr<CAIWorker::CAIPlayer>*)((CAIWorker*)this)->CAIWorker::m_Players. std::vector<_Tp, _Alloc>::operator[] [with _Tp = boost::shared_ptr<CAIWorker::CAIPlayer>, _Alloc = std::allocator<boost::shared_ptr<CAIWorker::CAIPlayer> >](i))->boost::shared_ptr<T>::operator-> [with T = CAIWorker::CAIPlayer]()->CAIWorker::CAIPlayer::m_Commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:354: error: request for member ‘size’ in ‘((boost::shared_ptr<CAIWorker::CAIPlayer>*)((CAIWorker*)this)->CAIWorker::m_Players. std::vector<_Tp, _Alloc>::operator[] [with _Tp = boost::shared_ptr<CAIWorker::CAIPlayer>, _Alloc = std::allocator<boost::shared_ptr<CAIWorker::CAIPlayer> >](i))->boost::shared_ptr<T>::operator-> [with T = CAIWorker::CAIPlayer]()->CAIWorker::CAIPlayer::m_Commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:356: error: ‘class ScriptInterface’ has no member named ‘ReadStructuredClone’ ../../../source/simulation2/components/CCmpAIManager.cpp:356: error: invalid types ‘int[size_t]’ for array subscript ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CAIWorker::Deserialize(std::istream&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:389: error: request for member ‘reserve’ in ‘((boost::shared_ptr<CAIWorker::CAIPlayer>*)((CAIWorker*)this)->CAIWorker::m_Players. std::vector<_Tp, _Alloc>::back [with _Tp = boost::shared_ptr<CAIWorker::CAIPlayer>, _Alloc = std::allocator<boost::shared_ptr<CAIWorker::CAIPlayer> >]())->boost::shared_ptr<T>::operator-> [with T = CAIWorker::CAIPlayer]()->CAIWorker::CAIPlayer::m_Commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:394: error: request for member ‘push_back’ in ‘((boost::shared_ptr<CAIWorker::CAIPlayer>*)((CAIWorker*)this)->CAIWorker::m_Players. std::vector<_Tp, _Alloc>::back [with _Tp = boost::shared_ptr<CAIWorker::CAIPlayer>, _Alloc = std::allocator<boost::shared_ptr<CAIWorker::CAIPlayer> >]())->boost::shared_ptr<T>::operator-> [with T = CAIWorker::CAIPlayer]()->CAIWorker::CAIPlayer::m_Commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:394: error: ‘class ScriptInterface’ has no member named ‘WriteStructuredClone’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘CScriptValRooted CAIWorker::LoadMetadata(const std::wstring&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:405: error: ‘class ScriptInterface’ has no member named ‘ReadJSONFile’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CAIWorker::PerformComputation()’: ../../../source/simulation2/components/CCmpAIManager.cpp:416: error: ‘class ScriptInterface’ has no member named ‘ReadStructuredClone’ ../../../source/simulation2/components/CCmpAIManager.cpp: In static member function ‘static IComponent* CCmpAIManager::Allocate(ScriptInterface&, jsval)’: ../../../source/simulation2/components/CCmpAIManager.cpp:450: error: cannot allocate an object of abstract type ‘CCmpAIManager’ ../../../source/simulation2/components/CCmpAIManager.cpp:444: note: because the following virtual functions are pure within ‘CCmpAIManager’: ../../../source/simulation2/system/IComponent.h:40: note: virtual void IComponent::Init(const CSimContext&, const CParamNode&) ../../../source/simulation2/system/IComponent.h:41: note: virtual void IComponent::Deinit(const CSimContext&) ../../../source/simulation2/system/IComponent.h:53: note: virtual void IComponent::Deserialize(const CSimContext&, const CParamNode&, IDeserializer&) ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘virtual void CCmpAIManager::Serialize(ISerializer&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:473: error: ‘class ISerializer’ has no member named ‘GetStream’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘virtual void CCmpAIManager::Deserialize(const CParamNode&, IDeserializer&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:480: error: ‘class IDeserializer’ has no member named ‘GetStream’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘virtual void CCmpAIManager::StartComputation()’: ../../../source/simulation2/components/CCmpAIManager.cpp:504: error: ‘class ScriptInterface’ has no member named ‘WriteStructuredClone’ ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘virtual void CCmpAIManager::PushCommands()’: ../../../source/simulation2/components/CCmpAIManager.cpp:520: error: request for member ‘size’ in ‘commands. std::vector<_Tp, _Alloc>::operator[] [with _Tp = CAIWorker::SCommandSets, _Alloc = std::allocator<CAIWorker::SCommandSets>](i)->CAIWorker::SCommandSets::commands’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:523: error: ‘class ScriptInterface’ has no member named ‘ReadStructuredClone’ ../../../source/simulation2/components/CCmpAIManager.cpp:523: error: invalid types ‘int[size_t]’ for array subscript ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CCmpAIManager::LoadEntityTemplates()’: ../../../source/simulation2/components/CCmpAIManager.cpp:536: error: no matching function for call to ‘ICmpTemplateManager::FindAllTemplates(bool)’ ../../../source/simulation2/components/ICmpTemplateManager.h:100: note: candidates are: virtual std::vector<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > > ICmpTemplateManager::FindAllTemplates() ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CCmpAIManager::LoadTerrainData(CScriptVal)’: ../../../source/simulation2/components/CCmpAIManager.cpp:555: error: ‘ICmpPathfinder’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp:555: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:555: error: invalid type in declaration before ‘(’ token ../../../source/simulation2/components/CCmpAIManager.cpp:555: error: initializer expression list treated as compound expression ../../../source/simulation2/components/CCmpAIManager.cpp:556: error: request for member ‘null’ in ‘cmpPathfinder’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:559: error: base operand of ‘->’ is not a pointer ../../../source/simulation2/components/CCmpAIManager.cpp: In member function ‘void CCmpAIManager::LoadPathfinderClasses(CScriptVal)’: ../../../source/simulation2/components/CCmpAIManager.cpp:569: error: ‘ICmpPathfinder’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp:569: error: template argument 1 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:569: error: invalid type in declaration before ‘(’ token ../../../source/simulation2/components/CCmpAIManager.cpp:569: error: initializer expression list treated as compound expression ../../../source/simulation2/components/CCmpAIManager.cpp:570: error: request for member ‘null’ in ‘cmpPathfinder’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp:578: error: ‘ICmpPathfinder’ cannot appear in a constant-expression ../../../source/simulation2/components/CCmpAIManager.cpp:578: error: template argument 2 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:578: error: template argument 4 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:578: error: invalid type in declaration before ‘=’ token ../../../source/simulation2/components/CCmpAIManager.cpp:578: error: base operand of ‘->’ is not a pointer ../../../source/simulation2/components/CCmpAIManager.cpp:579: error: ‘ICmpPathfinder’ cannot appear in a constant-expression ../../../source/simulation2/components/CCmpAIManager.cpp:579: error: template argument 2 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:579: error: template argument 4 is invalid ../../../source/simulation2/components/CCmpAIManager.cpp:579: error: expected initializer before ‘it’ ../../../source/simulation2/components/CCmpAIManager.cpp:579: error: ‘it’ was not declared in this scope ../../../source/simulation2/components/CCmpAIManager.cpp:579: error: request for member ‘end’ in ‘classes’, which is of non-class type ‘int’ ../../../source/simulation2/components/CCmpAIManager.cpp: In function ‘void RegisterComponentType_AIManager(CComponentManager&)’: ../../../source/simulation2/components/CCmpAIManager.cpp:588: error: ‘CID_AIManager’ was not declared in this scope /opt/local/include/boost/system/error_code.hpp: At global scope: /opt/local/include/boost/system/error_code.hpp:214: warning: ‘boost::system::posix_category’ defined but not used /opt/local/include/boost/system/error_code.hpp:215: warning: ‘boost::system::errno_ecat’ defined but not used /opt/local/include/boost/system/error_code.hpp:216: warning: ‘boost::system::native_ecat’ defined but not used make[1]: *** [obj/simulation2_Release/CCmpAIManager.o] Error 1 make: *** [simulation2] Error 2