DR2 zone compile error
When I try to compile zone, i get the following errors..
--------------------Configuration: Zone - Win32 Release-------------------- Compiling... Command line warning D4002 : ignoring unknown option '/Ob2' MobAI.cpp C:\eqemu\MortimusDev\source\current\Zone\MobAI.cpp (1551) : error C2955: 'list' : use of class template requires template argument list C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\list(415) : see declaration of 'list' C:\eqemu\MortimusDev\source\current\Zone\MobAI.cpp (1625) : error C2955: 'list' : use of class template requires template argument list C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\list(415) : see declaration of 'list' parser.cpp C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(59) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(73) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(134) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(171) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(188) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(191) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(274) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(561) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(944) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(956) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1005) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1056) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1089) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1283) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1293) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1294) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1295) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1296) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1384) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1385) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1394) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1395) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1405) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1411) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1412) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1413) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1419) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1462) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' C:\eqemu\MortimusDev\source\current\Zone\parser.cp p(1478) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' Error executing cl.exe. Zone.exe - 31 error(s), 1 warning(s) And when I try to compile EmuShareMem i get the following error --------------------Configuration: EMuShareMem - Win32 Release-------------------- Compiling... NPCFactionLists.cpp C:\eqemu\MortimusDev\source\current\EMuShareMem\NP CFactionLists.cpp(55) : error C2065: 'DEBUG' : undeclared identifier Error executing cl.exe. EMuShareMem.dll - 1 error(s), 0 warning(s) Any help would be much appreciated. |
Change "list" to something else (like "_list" or something). I read that I didn't work for someone, but it worked for me.
Change all the "clear"s to "erase". Note: There are four appearances of .clear() in that file that are ok, so don't just use the replace function. Only change those causing an error. "#define DEBUG" at the beginning of "NPCFactionList.cpp" |
Compiling...
NPCFactionLists.cpp C:\eqemu\MortimusDev\source\current\EMuShareMem\NP CFactionLists.cpp(55) : error C2065: 'DEBUG' : undeclared identifier Error executing cl.exe. This is a VS project error, there should be a /D DEBUG=X X being a number between 0 and 11, i don't recommend setting it any higher than 5 if you plan on having anyone except yourself login |
ok, now i got these errors
Here are the errors I get now..
--------------------Configuration: Zone - Win32 Release-------------------- Compiling... Command line warning D4002 : ignoring unknown option '/Ob2' doors.cpp Linking... Creating library ../Build/Zone.lib and object ../Build/Zone.exp NPCFactionLists.obj : error LNK2001: unresolved external symbol "public: __thiscall MMF::MMF(void)" (??0MMF@@QAE@XZ) NPCFactionLists.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall MMF::~MMF(void)" (??1MMF@@UAE@XZ) NPCFactionLists.obj : error LNK2001: unresolved external symbol "public: bool __thiscall MMF::Open(char const *,unsigned int)" (?Open@MMF@@QAE_NPBDI@Z) ../Build/Zone.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. Zone.exe - 4 error(s), 1 warning(s) |
fixed
well I fixed it by adding mmf.cpp to the workspace
|
Re: ok, now i got these errors
Quote:
|
what to then..
What should I do then, it compiled fine, and works fine like that.
..Well I removed NpcFactionlist.cpp and mmf.cpp from the zone workspace, and it compiled fine.. |
All times are GMT -4. The time now is 06:56 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.