Compilation error
When trying to compile zonent.cpp, I get the following errors, using MVSC++ 6.0:
Compiling... Command line warning D4002 : ignoring unknown option '/Ob2' attack.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory client.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory client_process.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory ClientList.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory entity.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory faction.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory groups.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory hate_list.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory loottables.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory mob.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory net.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory npc.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory NpcAI.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory Object.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory petitions.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory PlayerCorpse.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory Quest.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory spawn2.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory spells.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory WesQuests.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory worldserver.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory zone.cpp C:\Spel\EMU\Source\Zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory database.cpp C:\Spel\EMU\Source\common\database.cpp(6) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory packet_functions.cpp C:\Spel\EMU\Source\common\packet_functions.cpp(5) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory import_raw_items.cpp C:\Spel\EMU\Source\zone\import_raw_items.cpp(1) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory mob_spawn.cpp C:\Spel\EMU\Source\zone\../common/database.h(11) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory Error executing cl.exe. Creating browse info file... BSCMAKE: error BK1506 : cannot open file '\Spel\EMU\Source\Build\Zone\attack.sbr': No such file or directory Error executing bscmake.exe. Basically, it would appear ".." isn't working for whatever reason, since it's not going back to Build folder. Anyone have any idea why? |
Need to add c:/mysql/lib to your lib path, or put the lib files from that directory into your vc standard lib directory..
|
Tried that. Still doesn't work.
|
Oops, not lib, im an idjit..
c:/mysql/include to the standard include path... Sorry |
Scratch that, one fatal error still.
C:\Spel\EMU\Source\common\packet_functions.cpp(5) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory |
Don't have this file on my drive at all.
|
|
That has to be the 12th remote thing I download today. Thanks a lot for all the help :)
|
No problem.. I had to learn it all when i started compiling on win32 instead of linux. I had to compile my changes in on windows to test them, before Coder's NAT patch, I was never able to log into my own linux server..
I sure wish that would merge Coders stuff into the baseline (hint..hint.. nudge...nudge) There are other workarounds though.. |
Well, problems ain't over yet.
This is the current compile status: What do I need to fix? --------------------Configuration: Zone - Win32 GotFrags-------------------- Compiling... Command line warning D4002 : ignoring unknown option '/Ob2' attack.cpp client.cpp client_process.cpp ClientList.cpp entity.cpp faction.cpp groups.cpp hate_list.cpp import_raw_items.cpp C:\PROGRAM FILES\MYSQL\INCLUDE\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd' C:\PROGRAM FILES\MYSQL\INCLUDE\mysql_com.h(115) : error C2501: 'SOCKET' : missing storage-class or type specifiers C:\PROGRAM FILES\MYSQL\INCLUDE\mysql_com.h(115) : error C2501: 'fd' : missing storage-class or type specifiers loottables.cpp mob.cpp mob_spawn.cpp C:\Spel\EMU\Source\Zone\mob_spawn.cpp(7) : error C2511: 'CreateSpawnPacket' : overloaded member function 'void (class APPLAYER *)' not found in 'Mob' C:\Spel\EMU\Source\Zone\mob.h(36) : see declaration of 'Mob' net.cpp npc.cpp NpcAI.cpp Object.cpp petitions.cpp PlayerCorpse.cpp Quest.cpp spawn2.cpp spells.cpp WesQuests.cpp worldserver.cpp zone.cpp database.cpp Error executing cl.exe. ZoneGF.exe - 4 error(s), 1 warning(s) |
what version of mysql are you using?
|
3.23.49
|
Seem unable to get rid of these errors no matter what. Anyone else who has gotten them?
|
I'd be interested in helping you get this compiled.
I'll be on AIM as BoogahedFoH for the rest of the day. If theres another form of communication youd prefer, email, ICQ, IRC, etc, let me know. |
All times are GMT -4. The time now is 11:41 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.