|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Support::Windows Servers Support forum for Windows EQEMu users. |
 |
|
 |

05-02-2005, 03:16 AM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
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
Last edited by Penguin_nv; 05-02-2005 at 11:19 AM..
|
 |
|
 |

05-02-2005, 04:26 AM
|
Dragon
|
|
Join Date: Dec 2003
Location: Earth
Posts: 818
|
|
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
|

05-02-2005, 09:20 AM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
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?
Last edited by Penguin_nv; 05-02-2005 at 05:42 PM..
|

05-03-2005, 08:30 AM
|
Sarnak
|
|
Join Date: Jun 2004
Posts: 69
|
|
I am getting this same error also.
|

05-03-2005, 01:28 PM
|
Fire Beetle
|
|
Join Date: Dec 2004
Posts: 4
|
|
Make sure your VS6 is updated with Service Pack 5, and also install the appropriate Platform SDK, that will eliminate this problem.
|

05-03-2005, 04:02 PM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
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...
Last edited by Penguin_nv; 05-04-2005 at 08:28 AM..
|

05-04-2005, 12:41 AM
|
Dragon
|
|
Join Date: Dec 2003
Location: Earth
Posts: 818
|
|
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 ?
|

05-04-2005, 12:52 AM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
Well, I feel retarded, thanks for the help, it solved the problem
|

05-04-2005, 01:04 AM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 19
|
|
im assuming this is the platform sdk that your talking about
|

05-04-2005, 04:55 AM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
Yes, that is the link
|
 |
|
 |

05-04-2005, 11:51 AM
|
Hill Giant
|
|
Join Date: Jan 2005
Posts: 124
|
|
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
|
 |
|
 |

05-04-2005, 11:56 AM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
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?
|

05-04-2005, 11:58 AM
|
Hill Giant
|
|
Join Date: Jan 2005
Posts: 124
|
|
Sweet, thanks for the quick reply!  Still working on Zone.exe, getting frustrated lol. If you find anything post.
Regards,
SI
|

05-04-2005, 12:01 PM
|
Fire Beetle
|
|
Join Date: Apr 2005
Posts: 13
|
|
Np, so that fixed it then? I had added several files at once, so I wasn't too sure which ones it was
|

05-04-2005, 12:05 PM
|
Hill Giant
|
|
Join Date: Jan 2005
Posts: 124
|
|
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
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 02:51 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |