EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   CVS Compile Issues (https://www.eqemulator.org/forums/showthread.php?t=18454)

Penguin_nv 05-02-2005 03:16 AM

CVS Compile Issues
 
Hello,

I apologize in advance if this is in the wrong forum.

I have just recently downloaded the latest source from cvs, and EMuShareMem compiled just fine, but when I tried to compile world, I get 2652 errors and 703 warnings. Maybe I'm not doing something right, but I couldn't find anyone else who had this problem on the forums. Below is a sample of the errors, all of them are about the same.

*EDIT* Oops, forgot, this is using VC++ 6

Code:

c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : error C2065: 'SOCKET' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(69) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\mswsock.h(73) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(89) : error C2146: syntax error : missing ')' before identifier 'hSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(89) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\mswsock.h(96) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(101) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(101) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\mswsock.h(109) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(131) : error C2146: syntax error : missing ')' before identifier 'hSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(131) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft visual studio\vc98\include\mswsock.h(131) : error C2071: 'LPFN_TRANSMITFILE' : illegal storage class
c:\program files\microsoft visual studio\vc98\include\mswsock.h(138) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(146) : error C2146: syntax error : missing ')' before identifier 'sListenSocket'
c:\program files\microsoft visual studio\vc98\include\mswsock.h(146) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft visual studio\vc98\include\mswsock.h(146) : error C2071: 'LPFN_ACCEPTEX' : illegal storage class
c:\program files\microsoft visual studio\vc98\include\mswsock.h(154) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(85) : error C2378: 'SOCKET' : redefinition; symbol cannot be overloaded with a typedef
c:\program files\microsoft visual studio\vc98\include\winsock2.h(101) : error C2146: syntax error : missing ';' before identifier 'fd_array'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(101) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(101) : error C2501: 'fd_array' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(104) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1422) : error C2143: syntax error : missing ';' before '__stdcall'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1422) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1422) : error C2370: 'SOCKET' : redefinition; different storage class
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1424) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1424) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1424) : error C2501: 'accept' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1427) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1445) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1445) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1445) : error C2491: 'bind' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1448) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2491: 'closesocket' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1483) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1483) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1483) : error C2491: 'connect' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1486) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1504) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1504) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1504) : error C2491: 'ioctlsocket' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1507) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1525) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1525) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1525) : error C2491: 'getpeername' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1528) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1546) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1546) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1546) : error C2491: 'getsockname' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1549) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1567) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1567) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1567) : error C2491: 'getsockopt' : definition of dllimport data not allowed
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1572) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1660) : error C2146: syntax error : missing ')' before identifier 's'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1660) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2651) : fatal error C1003: error count exceeds 100; stopping compilation

Thank you

sdabbs65 05-02-2005 04:26 AM

socket.h
 
'SOCKET' : undeclared identifier

Your compiler is trying to tell you that you're using an identifier that hasn't been declared anywhere, it's not known.

make sure socket.h is defined somewhere is my guess.

#include socket.h

Penguin_nv 05-02-2005 09:20 AM

Nope, still giving me the ame errors, and there is no file called socket.h either

*EDIT* - I'm not sure if this is related, but 0.6.0-DR2 compiles just fine, so maybe something has changed in the setup?

phasepuma 05-03-2005 08:30 AM

I am getting this same error also.

OrtRestave 05-03-2005 01:28 PM

Make sure your VS6 is updated with Service Pack 5, and also install the appropriate Platform SDK, that will eliminate this problem.

Penguin_nv 05-03-2005 04:02 PM

Quote:

Originally Posted by OrtRestave
Make sure your VS6 is updated with Service Pack 5, and also install the appropriate Platform SDK, that will eliminate this problem.

Have VS6 w/SP6, but not sure what you mean by appropriate Platform SDK

*EDIT*-Found the SDK, microsoft likes to hide those things...

sdabbs65 05-04-2005 12:41 AM

sdk
 
Quote:

Originally Posted by Penguin_nv
Have VS6 w/SP6, but not sure what you mean by appropriate Platform SDK

*EDIT*-Found the SDK, microsoft likes to hide those things...



i'm looking 2 where did you find it ?

Penguin_nv 05-04-2005 12:52 AM

Well, I feel retarded, thanks for the help, it solved the problem

rmcgraw1 05-04-2005 01:04 AM

im assuming this is the platform sdk that your talking about
 
http://www.microsoft.com/msdownload/...ULLInstall.htm

hope this is it im on dial up it will take forever

Penguin_nv 05-04-2005 04:55 AM

Yes, that is the link

sonicintuition 05-04-2005 11:51 AM

This solution works, thanks for the tip. Unfortunately I still cannot compile this, because of unresolved externals that are pointing to files that I cannot find in the dump. I'm not an expert or anything but I've been able (up to this point) to figure out what files are missing from the project from the error messages and finish the compiles flawlessly.

When compiling world.exe, I originally had about 30 or so unresolved externals, after I fixed what I could I ended up with the following unresolved externals:
Quote:

opcodemgr.obj : error LNK2001: unresolved external symbol "char const * * OpcodeNames" (?OpcodeNames@@3PAPBDA)
EQPacket.obj : error LNK2001: unresolved external symbol "char const * * OpcodeNames" (?OpcodeNames@@3PAPBDA)
I am assuming that I need to include a file called OpcodeNames.cpp ...but one does not exist in the project ..so is there another file or something? A bit confused on this.

When compiling zone.exe the story is a bit different. Lots of unresolved externals on the default build, I was able to bring it down to 13. They are as follows:
Quote:

Zone error LNK2019: unresolved external symbol "public: __thiscall TitleManager::TitleManager(void)" (??0TitleManager@@QAE@XZ) referenced in function _$E13
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::SetBindPoint(int,float,float,float)" (?SetBindPoint@Client@@QAEXHMMM@Z) referenced in function "void __cdecl command_bind(class Client *,class Seperator const *)" (?command_bind@@YAXPAVClient@@PBVSeperator@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::SetBindPoint(int,float,float,float)" (?SetBindPoint@Client@@QAEXHMMM@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::SetBindPoint(int,float,float,float)" (?SetBindPoint@Client@@QAEXHMMM@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXMMME_NW4ZoneMode@@@Z) referenced in function "void __cdecl command_goto(class Client *,class Seperator const *)" (?command_goto@@YAXPAVClient@@PBVSeperator@@@Z)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall NPC::Gate(void)" (?Gate@NPC@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall NPC::Gate(void)" (?Gate@NPC@@UAEXXZ)
Zone error LNK2019: unresolved external symbol "public: bool __thiscall TitleManager::LoadTitles(void)" (?LoadTitles@TitleManager@@QAE_NXZ) referenced in function _main
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Mob::Gate(void)" (?Gate@Mob@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Mob::Gate(void)" (?Gate@Mob@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Mob::Gate(void)" (?Gate@Mob@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Client::Gate(void)" (?Gate@Client@@UAEXXZ)
Zone error LNK2001: unresolved external symbol "public: virtual void __thiscall Client::GoToBind(void)" (?GoToBind@Client@@UAEXXZ)
Zone error LNK2019: unresolved external symbol "public: class EQApplicationPacket * __thiscall TitleManager::MakeTitlesPacket(class Client *)" (?MakeTitlesPacket@TitleManager@@QAEPAVEQApplicati onPacket@@PAVClient@@@Z) referenced in function "public: void __thiscall Client::Handle_Connect_OP_ReqNewZone(class EQApplicationPacket const *)" (?Handle_Connect_OP_ReqNewZone@Client@@QAEXPBVEQAp plicationPacket@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z) referenced in function "public: void __thiscall Client::Handle_OP_GMZoneRequest2(class EQApplicationPacket const *)" (?Handle_OP_GMZoneRequest2@Client@@QAEXPBVEQApplic ationPacket@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::GoToSafeCoords(unsigned short)" (?GoToSafeCoords@Client@@QAEXG@Z) referenced in function "protected: virtual __thiscall std::numpunct<char>::~numpunct<char>(void)" (??1?$numpunct@D@std@@MAE@XZ)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z) referenced in function "public: void __thiscall Client::Handle_OP_GMGoto(class EQApplicationPacket const *)" (?Handle_OP_GMGoto@Client@@QAEXPBVEQApplicationPac ket@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z) referenced in function "int __cdecl command_init(void)" (?command_init@@YAHXZ)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(unsigned int,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXIMMME_NW4ZoneMode@@@Z)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::Handle_OP_ZoneChange(class EQApplicationPacket const *)" (?Handle_OP_ZoneChange@Client@@QAEXPBVEQApplicatio nPacket@@@Z) referenced in function "void __cdecl MapOpcodes(void)" (?MapOpcodes@@YAXXZ)
Zone error LNK2019: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z) referenced in function "private: void __thiscall Client::OPGMSummon(class EQApplicationPacket const *)" (?OPGMSummon@Client@@AAEXPBVEQApplicationPacket@@@ Z)
Zone error LNK2001: unresolved external symbol "public: void __thiscall Client::MovePC(char const *,float,float,float,unsigned char,bool,enum ZoneMode)" (?MovePC@Client@@QAEXPBDMMME_NW4ZoneMode@@@Z)
It would appear that I need a file called EQApplicationPacket.cpp and TitleManager.cpp ...however they do not exist in the dump.

I may be reading these wrong - as stated above I am by no means an expert on this and is why I seek help. Any insight would be appreciated very much.

Regards,
SI

Penguin_nv 05-04-2005 11:56 AM

Ok, I can sorta help you out.

The world resolve errors, include emu_opcodes.cpp emu_opcodes.h , and that should fix it, I added those in the project, and it compiled fine. As for zone.exe, you are at the same point I am, sorry I couldn't help you there.

I'm not an expert either, but after playing around with it for a bit, I got world fixed, maybe someone else got zone.exe fixed?

sonicintuition 05-04-2005 11:58 AM

Sweet, thanks for the quick reply! :) Still working on Zone.exe, getting frustrated lol. If you find anything post.

Regards,
SI

Penguin_nv 05-04-2005 12:01 PM

Np, so that fixed it then? I had added several files at once, so I wasn't too sure which ones it was

sonicintuition 05-04-2005 12:05 PM

Yeah, that fixed world.exe. So close to the newest build, damn zone.exe errors :(. Anyway with zone.exe (not sure if I was supposed to do this) I added everything in the common folder except a couple files that were producing errors, like EQnetwork.cpp and end up with what I posted above and is why I think there are missing files or something. Thanks again for fixing world.exe, thats cool.

Regards,
SI


All times are GMT -4. The time now is 12:04 PM.

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