View Full Version : Dr4 compiling question
axion9
06-04-2004, 06:07 PM
First, please don't read this unless you have some spare time and don't mind dealing with a basic question (for most of you). I don't want to waste anyone's time.
Having said that, let me get to my problem. I've searched the boards and have found some information regarding compiling dr4. I have tried a few times over, following closely, the various info to no avail.
I was wondering if anyone would be kind enough to post a quick walkthrough, more or less, of the compiling process using visual c++.
Now, I understand that this really basic procedure for most everyone here. I am reading all I can on c++ so I'm not just looking for someone to always do this for me.
Any help from you guys would be greatly appreciated. Thanks in advance.
**note** Don't worry, my server is mostly for personal use and learning. I don't plan on wasting anyone's game time with a public server with a newbie gm. :)
**note 2** I've tried adding EMuShareMem.dsw, World.dsw, Zone.dsw one at a time by "opening workspace" EMuShareMem.dsw and adding zone and world through "add to project"
After, I chose "Set active config" then "release option" then "rebuild all." This leaves me with 13 errors. I've also gone in and removed npctypes.cpp.h. This also leaves me with 13 errors and a mysql.h error being one of them. Only time I was left with only 1 error (the mysql.h - directory, file not found) was when I took out all the npc files from the project.
Thanks again, hope that was enough info. If it wasn't, please let me know and I will post more detail.
The errors he is talking about are these:
when I compile emusharemem.dll, i get:
--------------------Configuration: EMuShareMem - Win32 Release--------------------
Compiling...
NPCTypes.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.h(16) : error C2065: 'CALLBACK_DBLoadNPCTypes' : undeclared identifier
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.h(16) : error C2146: syntax error : missing ')' before identifier 'cbDBLoadNPCTypes'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.h(16) : error C2059: syntax error : ')'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2146: syntax error : missing ')' before identifier 'cbDBLoadNPCTypes'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2059: syntax error : ')'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2146: syntax error : missing ')' before identifier 'cbDBLoadNPCTypes'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2086: 'pDLLLoadNPCTypes' : redefinition
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2059: syntax error : ')'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2447: missing function header (old-style formal list?)
Spells.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\../zone/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Error executing cl.exe.
EMuShareMem.dll - 13 error(s), 0 warning(s)
And when I do zone.exe:
--------------------Configuration: Zone - Win32 Release--------------------
Compiling...
attack.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
beacon.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
client.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
client_process.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\client_process.cpp(28) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
command.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
doors.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
entity.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
EQEMuError.cpp
faction.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
forage.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
groups.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
hate_list.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
loottables.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Map.cpp
mob.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
MobAI.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
net.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
npc.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Object.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
parser.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
petitions.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
PlayerCorpse.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
spawn2.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
spawngroup.cpp
spells.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
worldserver.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zone.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zonedbasync.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../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:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\database.cpp(25) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
dbasync.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/dbcore.h(8) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
dbcore.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\dbcore.cpp(5) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
DBMemLeak.cpp
debug.cpp
EMuShareMem.cpp
EQNetwork.cpp
eqtime.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
guilds.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Item.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
md5.cpp
misc.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\misc.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
MiscFunctions.cpp
moremath.cpp
Mutex.cpp
packet_dump.cpp
packet_dump_file.cpp
packet_functions.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\packet_functions.cpp(22) : 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.
Zone.exe - 33 error(s), 0 warning(s)
And World.exe:
--------------------Configuration: World - Win32 Release--------------------
Compiling...
client.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\client.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
console.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
LoginServer.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
net.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zoneserver.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\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:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\database.cpp(25) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
dbasync.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/dbcore.h(8) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
dbcore.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\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:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
guilds.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Item.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
md5.cpp
misc.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\misc.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
MiscFunctions.cpp
moremath.cpp
Mutex.cpp
packet_dump.cpp
packet_dump_file.cpp
packet_functions.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\packet_functions.cpp(22) : 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 - 13 error(s), 0 warning(s)
I've done the whole include thing, as directed by that tutorial and I've made sure that everything was spelt correctly. Anyone know how to fix this?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.