Page 1 of 1
Compile error, perhaps somethign to do with mySql
Posted: Fri Jan 18, 2008 4:21 pm
by pagansmurf
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
Posted: Fri Jan 18, 2008 8:08 pm
by pagansmurf
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.
new issue
Posted: Fri Jan 18, 2008 9:19 pm
by pagansmurf
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...
Posted: Fri Jan 18, 2008 10:32 pm
by Diamente
Is the DLL you are referring to zlib?
Posted: Fri Jan 18, 2008 10:36 pm
by pagansmurf
i'm sorry, its been a really long day for me... i mean world.exe
Posted: Fri Jan 18, 2008 11:02 pm
by pagansmurf
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.
Posted: Sat Jan 19, 2008 4:22 pm
by pagansmurf
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)...