Compile error, perhaps somethign to do with mySql

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
pagansmurf
Posts: 8
Joined: Fri Jan 18, 2008 10:56 am

Compile error, perhaps somethign to do with mySql

Post by pagansmurf » Fri Jan 18, 2008 4:21 pm

I received 34 errors like this when trying to comiple in vs2005.
I got past my zlib and mysql.h errors already.
Error 1 error LNK2019: unresolved external symbol _mysql_free_result@4 referenced in function "public: __thiscall Query::~Query(void)" (??1Query@@QAE@XZ) WorldDatabase.obj
Similar errors for database.obj,dbcore.obj, eqstream.obj, misc.obj, packet_functions.obj

pagansmurf
Posts: 8
Joined: Fri Jan 18, 2008 10:56 am

Post by pagansmurf » Fri Jan 18, 2008 8:08 pm

I figured it out with the help of a friend...
In VS2005 i had to include the directories from his MySQL 4.1 directory... i'm sure exactly which files but it compiles for me now.

pagansmurf
Posts: 8
Joined: Fri Jan 18, 2008 10:56 am

new issue

Post by pagansmurf » Fri Jan 18, 2008 9:19 pm

spoke too soon,... i can compile the source now, but whenever i run world.exe it immediately crashes...
If i use the compiled DLL from the downloaded binary it works... that binary is 1758k, mine is 1716k...

Diamente
Retired
Posts: 45
Joined: Mon Jul 30, 2007 7:49 am
Location: Oklahoma

Post by Diamente » Fri Jan 18, 2008 10:32 pm

Is the DLL you are referring to zlib?

pagansmurf
Posts: 8
Joined: Fri Jan 18, 2008 10:56 am

Post by pagansmurf » Fri Jan 18, 2008 10:36 pm

i'm sorry, its been a really long day for me... i mean world.exe

pagansmurf
Posts: 8
Joined: Fri Jan 18, 2008 10:56 am

Post by pagansmurf » Fri Jan 18, 2008 11:02 pm

If i do a debug on the crash it says world.exe had an unhandled exception(952)...
the debug then says:
Unhandled exception at 0x7c918fea in World.exe: 0xC0000005: Access violation writing 0x00000010.

pagansmurf
Posts: 8
Joined: Fri Jan 18, 2008 10:56 am

Post by pagansmurf » Sat Jan 19, 2008 4:22 pm

another update for anyone else who is having issues.
I installed MySql 4.1 and it seems to compile fine and run the world.exe
One compatability issue i did run into is in the table variables the variable_value column can only be a varchar(255) max, but when i backed up my db from mysql 5.0 it was saved as varchar(256)...

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests