EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   help zone compile (https://www.eqemulator.org/forums/showthread.php?t=8809)

icesab 07-23-2003 11:06 AM

help zone compile
 
Can anyone help me with these errors i am getting while compiling zone.exe for the 0.5.0 in MVC++ 6 .

The dll and world.exe i got to compile but these are the errors on zone I get.

Any Help is Appreciated.

Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
MobAI.cpp
C:\EQEmu\NewSource\Zone\MobAI.cpp(1544) : 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\NewSource\Zone\MobAI.cpp(1618) : 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\NewSource\Zone\parser.cpp(59) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >'
C:\EQEmu\NewSource\Zone\parser.cpp(73) : error C2039: 'clear' : is not a member of 'basic_string<char,struct std::char_traits<char>,class std::allocator<char> >'



Error executing cl.exe.

Bigpull 07-23-2003 12:17 PM

http://forums.eqemu.net/viewtopic.php?t=9503

herkimer 07-23-2003 01:01 PM

Errors in compiling .50
 
I get the same errors - Have fixed the .clear problems but still no clue as to how to fix the problems in MobAI.cpp (list) - Also, in emushare.dll, other posts said to add DEBUG to the c+ processor to eliminate that error - In my menu, it already has _DEBUG added - Is this the same thing, or do I add it in without the "_", or do I delete the one with the "_"?

Thanks!

icesab 07-23-2003 02:23 PM

Ok i got the clear fixed by just replacing the ones that gave error with erase.

now i got this left..

Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
MobAI.cpp
C:\Borland\eqemu\NewSource\Zone\MobAI.cpp(1544) : 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:\Borland\eqemu\NewSource\Zone\MobAI.cpp(1618) : 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'
Error executing cl.exe.

Zone.exe - 2 error(s), 1 warning(s)

herkimer for the DEBUG question i just put a DEBUG at the end of it and left everything the way it was

Mongrel 07-23-2003 06:25 PM

Replace "list" with "_list" or something similar.

icesab 07-24-2003 04:58 AM

ok i think i found the actual line these error came from the lines they point to have nothing on them but when you make a change to the cpp and resave it the error changed to this

Command line warning D4002 : ignoring unknown option '/Ob2'
MobAI.cpp
C:\EQEmu\NewSource\Zone\MobAI.cpp(3087) : 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\NewSource\Zone\MobAI.cpp(3235) : 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'
Error executing cl.exe.

and on them lines i have this

bool IsSpellInList(DBnpcspells_Struct* list, sint16 iSpellID);

bool IsSpellInList(DBnpcspells_Struct* list, sint16 iSpellID) {

so if anyone have any idea why i get this error please let me know.
also on the first line i can change the list to anything to get rid of the error but on the second line i get errors if i change it

Trumpcard 07-24-2003 05:57 AM

It shouldnt have been hard... The compiler listed the lines the errors were from...lol...

C:\EQEmu\NewSource\Zone\MobAI.cpp(3087) : error C2955: 'list' :
C:\EQEmu\NewSource\Zone\MobAI.cpp(3235) : error C2955: 'list' :

Like mongrel said, try replacing list with some other variable name.... I'd do a global search and replace in that file of list with something else, it's clashing with something defined in the STL...


All times are GMT -4. The time now is 05:57 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.