Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2006, 02:01 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default Problems Trying to Compile 0.6.4 w/ Visual Studio 2003

I am trying to compile the latest source code (EQEmu-0.6.4-DR1-58 From the download section using Visual Studio 2003. I have MySql 4.0.21, Perl 5.8.7 and zLib 1.2.3 installed.

I have added all the Include and Library directories into Visual Studio under options. I am able to build EmuShareMem and World just fine. Zone does not build. Everything compiles fine it is the linking stage that fails. I am getting a lot of unresolved external symbol errors.

Code:
zoning.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
trading.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
tribute.obj : error LNK2019: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A) referenced in function __ehhandler$?AddTributePoints@Client@@QAEXH@Z
worldserver.obj : error LNK2019: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A) referenced in function "public: void __thiscall WorldServer::Process(void)" (?Process@WorldServer@@QAEXXZ)
zone.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
spell_effects.obj : error LNK2019: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A) referenced in function "public: bool __thiscall Mob::SpellEffect(class Mob *,unsigned short,float)" (?SpellEffect@Mob@@QAE_NPAV1@GM@Z)
spells.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
titles.obj : error LNK2019: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A) referenced in function "public: bool __thiscall TitleManager::LoadTitles(void)" (?LoadTitles@TitleManager@@QAE_NXZ)
tradeskills.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
petitions.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
PlayerCorpse.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
questmgr.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
special_attacks.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
MobAI.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
net.obj : error LNK2001: unresolved external symbol "class OpcodeManager * ZoneOpcodeManager" (?ZoneOpcodeManager@@3PAVOpcodeManager@@A)
command.obj : error LNK2019: unresolved external symbol "void __cdecl log_disable(enum LogType)" (?log_disable@@YAXW4LogType@@@Z) referenced in function "void __cdecl command_mlog(class Client *,class Seperator const *)" (?command_mlog@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "void __cdecl log_enable(enum LogType)" (?log_enable@@YAXW4LogType@@@Z) referenced in function "void __cdecl command_mlog(class Client *,class Seperator const *)" (?command_mlog@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2001: unresolved external symbol "char const * * log_category_names" (?log_category_names@@3PAPBDA)
embperl.obj : error LNK2019: unresolved external symbol _boot_PerlPacket referenced in function _xs_init
EQStream.obj : error LNK2019: unresolved external symbol "public: class EQMailPacket * __thiscall EQProtocolPacket::MakeMailPacket(void)const " (?MakeMailPacket@EQProtocolPacket@@QBEPAVEQMailPacket@@XZ) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(class EQProtocolPacket *)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PAVEQProtocolPacket@@@Z)
EQStream.obj : error LNK2019: unresolved external symbol "public: class EQChatPacket * __thiscall EQProtocolPacket::MakeChatPacket(void)const " (?MakeChatPacket@EQProtocolPacket@@QBEPAVEQChatPacket@@XZ) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(class EQProtocolPacket *)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PAVEQProtocolPacket@@@Z)
EQStream.obj : error LNK2019: unresolved external symbol "public: class EQZonePacket * __thiscall EQProtocolPacket::MakeZonePacket(void)const " (?MakeZonePacket@EQProtocolPacket@@QBEPAVEQZonePacket@@XZ) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(class EQProtocolPacket *)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PAVEQProtocolPacket@@@Z)
EQStream.obj : error LNK2019: unresolved external symbol "public: class EQWorldPacket * __thiscall EQProtocolPacket::MakeWorldPacket(void)const " (?MakeWorldPacket@EQProtocolPacket@@QBEPAVEQWorldPacket@@XZ) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(class EQProtocolPacket *)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PAVEQProtocolPacket@@@Z)
EQStream.obj : error LNK2019: unresolved external symbol "public: class EQLoginPacket * __thiscall EQProtocolPacket::MakeLoginPacket(void)const " (?MakeLoginPacket@EQProtocolPacket@@QBEPAVEQLoginPacket@@XZ) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(class EQProtocolPacket *)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PAVEQProtocolPacket@@@Z)
EQStream.obj : error LNK2019: unresolved external symbol "private: __thiscall EQMailPacket::EQMailPacket(unsigned char const *,unsigned int)" (??0EQMailPacket@@AAE@PBEI@Z) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(unsigned char const *,unsigned int)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PBEI@Z)
EQStream.obj : error LNK2019: unresolved external symbol "private: __thiscall EQChatPacket::EQChatPacket(unsigned char const *,unsigned int)" (??0EQChatPacket@@AAE@PBEI@Z) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(unsigned char const *,unsigned int)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PBEI@Z)
EQStream.obj : error LNK2019: unresolved external symbol "private: __thiscall EQZonePacket::EQZonePacket(unsigned char const *,unsigned int)" (??0EQZonePacket@@AAE@PBEI@Z) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(unsigned char const *,unsigned int)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PBEI@Z)
EQStream.obj : error LNK2019: unresolved external symbol "private: __thiscall EQWorldPacket::EQWorldPacket(unsigned char const *,unsigned int)" (??0EQWorldPacket@@AAE@PBEI@Z) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(unsigned char const *,unsigned int)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PBEI@Z)
EQStream.obj : error LNK2019: unresolved external symbol "private: __thiscall EQLoginPacket::EQLoginPacket(unsigned char const *,unsigned int)" (??0EQLoginPacket@@AAE@PBEI@Z) referenced in function "protected: class EQApplicationPacket * __thiscall EQStream::MakeApplicationPacket(unsigned char const *,unsigned int)" (?MakeApplicationPacket@EQStream@@IAEPAVEQApplicationPacket@@PBEI@Z)
(Abbrieviated version of error, Complete error list can be seen at http://eqemu.sesmar.net/errorlog.txt)

I recently had to reformat my C Drive and reinstall windows. Before doing the reformat I was able to compile both 0.6.2 and 0.6.3, now I cannot even get these versions to compile in VS 2003. I am wondering is I have missed some settings somewhere that I have forgot about. I have read everything on the Wiki for compiling under VS 2005 Express, and have tried compiling using Visual Studio 2005 Professional as well with the same results. I have also read all the Tutorials on compiling under Visual Studio 2003 with no luck. Thank you for any help you can provide.
Reply With Quote
  #2  
Old 01-10-2006, 02:55 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

sounds like files are missing from your project. You need logsys.cpp and EQ*Packet.cpp in it. I will fix this in cvs.

Last edited by fathernitwit; 01-10-2006 at 11:01 AM..
Reply With Quote
  #3  
Old 01-10-2006, 03:34 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

Thank you for your quick response. I will try recompiling once I get the needed files and let you know how it goes.
Reply With Quote
  #4  
Old 01-10-2006, 04:28 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

I looked in my source folder and I was able to find both files

EQPacket.cpp
logsys.cpp

In the common folder.
Reply With Quote
  #5  
Old 01-10-2006, 05:40 AM
Doodman's Avatar
Doodman
Developer
 
Join Date: Aug 2003
Posts: 246
Default

You will need all the EQ*Packet.cpp files:
EQChatPacket.cpp
EQLoginPacket.cpp
EQMailPacket.cpp
EQPacket.cpp
EQWorldPacket.cpp
EQZonePacket.cpp

And, by the looks of your logs:
opcodemgr.cpp
Reply With Quote
  #6  
Old 01-10-2006, 06:13 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

I have checked and have all of these files.

However, I do not believe it to be a problem with missing files as I would not have made it passed the compile stage of the build. The errors I am getting are during the linking stage. After doing a little searching I have found that the problem could be due to Library Dependencies. If you goto Project->Properties.

On this window you click on:
Configuration Properties->Linker->Input: under Additional Dependencies I have:

odbc32.lib
odbccp32.lib
wsock32.lib
zlib.lib
mysqlclient.lib

listed. Are these all that are required or am I missing some? Thank you for your help so far.
Reply With Quote
  #7  
Old 01-10-2006, 01:16 PM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

Well, after double checking all the settings and checking all the install paths for MySql, Perl, and zLib I have been able to get the source from 0.6.2 and 0.6.3 to compile again. Once I was able to compile these two I compared the project settings for the Zone Project from 0.6.3 to the settings in the 0.6.4 Source and made sure everything was the same ( which I had to make a few corrections to make sure it all matched up ). However I am still not able to get version 0.6.4 to compile for me.

Also after doing a lot of searching on the internet for similar problems I am fairly certain it is a linking error and not a compile error. I seems that I am missing some .lib in my dependencies, however, I am unable to pin point the problem.

Once again thank you for any help you can provide.
Reply With Quote
  #8  
Old 01-10-2006, 01:49 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

yes, it is a linking error. This can happen from missing .cpp/.obj files or from missing libs. These are from missing .cpp files.
Reply With Quote
  #9  
Old 01-11-2006, 02:37 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

I have also tried pulling the latest code from the Development Branch. This source gives me the same errors as the source downloaded from the download page.

As for missing .cpp files, I have checked for all the files suggested and I am not missing any of them.
Reply With Quote
  #10  
Old 01-11-2006, 06:42 AM
rojadruid
Discordant
 
Join Date: May 2005
Location: Smith Falls, Ontario, Canada
Posts: 283
Default

Quote:
Originally Posted by sesmar
I have also tried pulling the latest code from the Development Branch. This source gives me the same errors as the source downloaded from the download page.

As for missing .cpp files, I have checked for all the files suggested and I am not missing any of them.
My one question would be is: Are the "paths" in the code or compiler that look for where those files are are correct.

This is only a guess as I have not done computer programming in about 15 years and am no longer wise in the ways that compilers request %PATH% information.
__________________
Rojadruid

Innoruuk Server [legit]
Server Admin.
Server Status: UP
Reply With Quote
  #11  
Old 01-11-2006, 07:33 AM
killhand
Fire Beetle
 
Join Date: Apr 2005
Posts: 25
Default

Maybe is nmake.exe what you are missing? i can compile perfect in VS.net 2003.Will check when i get at home and post my configuration.
Reply With Quote
  #12  
Old 01-11-2006, 08:35 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

If you are able to compile do you think you could post your source somewhere I can download it. That would make things a lot easier for me.
Reply With Quote
  #13  
Old 01-12-2006, 05:43 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

I have tried again compiling the code using the newest source (posted today). I am still getting the same errors.

I have posted the Build Log from the compiler, hopefully this will help find the problem that I am having.

http://eqemu.sesmar.net/BuildLog.htm

Once again thank you for any help you can provide.
Reply With Quote
  #14  
Old 01-12-2006, 06:39 AM
killhand
Fire Beetle
 
Join Date: Apr 2005
Posts: 25
Default

I always pull the source from the development branch of CVS, pulled it today again and sucessfully compiled. Dont know what your problem can be, sorry.
Reply With Quote
  #15  
Old 01-12-2006, 01:05 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

ok, for the fourth time... YOU ARE FREAKIN MISSING THOSE FILES LISTED ABOVE FROM YOUR PROJECT. If you refuse to listen to me, then how do you plan to fix your problem... I tend to know what im talking about....
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 12:54 PM.


 

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