Log in

View Full Version : Compiling problems.....


dgates
10-05-2003, 01:23 PM
I compiled EmuShareMem perfectly fine;however, I cannot compile neither zone.exe or world.exe. I read some of the previous threads regarding this however the only answer i saw was to correct improper capitalization in the root directories. These are all fine on my machine. Here is the code.

ompiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
client.cpp
C:\EqEmu\cvs\eqemu\NewSource\world\client.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
console.cpp
C:\EqEmu\cvs\eqemu\NewSource\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
LoginServer.cpp
C:\EqEmu\cvs\eqemu\NewSource\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
net.cpp
C:\EqEmu\cvs\eqemu\NewSource\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zoneserver.cpp
C:\EqEmu\cvs\eqemu\NewSource\world\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
classes.cpp
crc32.cpp
database.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\database.cpp(2 5) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
dbasync.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\../common/dbcore.h(8) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
dbcore.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\dbcore.cpp(5 ) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
DBMemLeak.cpp
debug.cpp
EMuShareMem.cpp
EQEMuError.cpp
EQNetwork.cpp
eqtime.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
guilds.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Item.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
md5.cpp
misc.cpp
MiscFunctions.cpp
moremath.cpp
Mutex.cpp
packet_dump.cpp
packet_dump_file.cpp
packet_functions.cpp
C:\EqEmu\cvs\eqemu\NewSource\common\packet_functio ns.cpp(24) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
races.cpp
serverinfo.cpp
TCPConnection.cpp
timer.cpp
Error executing cl.exe.

World.exe - 12 error(s), 1 warning(s)


I would appreciate any suggestion anyone might have towards the resolution of this problem.

kai_shadowbane
10-05-2003, 01:50 PM
you skipped the steps on downloading and installing mysql and zlib, and then adding them into the includes area of your compiler.

redo those parts and then try again, make sure to follow all steps of the guide, there's no skipping anything and thinking it works

dgates
10-06-2003, 02:47 AM
I have installed mysql and zlib both, and if you mean by adding them to the includes of the compiler i did as it says on 7d and 7f of this guide http://www.everquestserver.com/forums/viewtopic.php?t=9648&sid=110f624ace06ae0afb8e6a65a04ff5af. Maybe I am still missing something. Anyone know?

Trumpcard
10-06-2003, 03:23 AM
Make sure you've done it correctly, because even if you installed them, your compiler isnt finding them...

Thats the problem. I can't tell you how to fix that, but google is a good resource for information on setting up VC correctly...

Merth
10-06-2003, 04:24 AM
Prove to yourself that you are doing the "include" add correctly .. Create a new file, c:\foo\MyInclude.h. Add c:\foo to your include paths in VC. Then add the line #include "MyInclude.h" to the top of a .cpp file, and see if your compiler finds it.

dgates
10-06-2003, 07:11 AM
I added c:\foo to my include files list and i make a folder in C: called foo which contained myinclude.h and i added #include "MyInclude.h" to the top of console.cpp and tryed to compile console.cpp and this is the following error i received...

Compiling...
Command line warning D4002 : ignoring unknown option '/Ob2'
console.cpp
C:\EqEmu\cvs\eqemu\NewSource\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Error executing cl.exe.

console.obj - 1 error(s), 1 warning(s)


This the top of the console.cpp where i added the #include "MyInclude.h" command.

*/

#include "MyInclude.h"

#include "../common/debug.h"

#include <iostream>

using namespace std;

Kinda frustrating but I guess I can expect that since im not an avid Visual Studio user.

Any suggestions?

kai_shadowbane
10-06-2003, 09:28 AM
hmm, here's an easy question, what program are you using to compile?

dgates
10-07-2003, 04:19 AM
I am using Microsoft Visual C++ 6.0 right now.

tanku
10-15-2003, 01:29 AM
It is a known Microsoft bug. Here is the link with the explanation.

http://support.microsoft.com/default.aspx?scid=kb;en-us;241592&Product=vc6

It lists 2 resolutions. I haven't tried to implement them yet, because I am at work and just found this.

-Tanku