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-588) 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) 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. |
sounds like files are missing from your project. You need logsys.cpp and EQ*Packet.cpp in it. I will fix this in cvs.
|
Thank you for your quick response. I will try recompiling once I get the needed files and let you know how it goes.
|
I looked in my source folder and I was able to find both files
EQPacket.cpp logsys.cpp In the common folder. |
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 |
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. |
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. |
yes, it is a linking error. This can happen from missing .cpp/.obj files or from missing libs. These are from missing .cpp files.
|
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. |
Quote:
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. |
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.
|
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.
|
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. |
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.
|
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....
|
All times are GMT -4. The time now is 07:48 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.