Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2003, 11:06 AM
icesab
Fire Beetle
 
Join Date: Jul 2003
Posts: 4
Default 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(161 : 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.
Reply With Quote
  #2  
Old 07-23-2003, 12:17 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

http://forums.eqemu.net/viewtopic.php?t=9503
Reply With Quote
  #3  
Old 07-23-2003, 01:01 PM
herkimer
Fire Beetle
 
Join Date: Apr 2003
Posts: 24
Default 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!
Reply With Quote
  #4  
Old 07-23-2003, 02:23 PM
icesab
Fire Beetle
 
Join Date: Jul 2003
Posts: 4
Default

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(161 : 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
Reply With Quote
  #5  
Old 07-23-2003, 06:25 PM
Mongrel
Hill Giant
 
Join Date: Jul 2003
Location: Germany
Posts: 232
Default

Replace "list" with "_list" or something similar.
Reply With Quote
  #6  
Old 07-24-2003, 04:58 AM
icesab
Fire Beetle
 
Join Date: Jul 2003
Posts: 4
Default

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
Reply With Quote
  #7  
Old 07-24-2003, 05:57 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

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...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:48 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3