Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Dark GDK with mysql - LNK 2019 error

Author
Message
scar164
13
Years of Service
User Offline
Joined: 22nd Jul 2010
Location:
Posted: 26th Jul 2010 12:27
Hi all

Today I decided to try to implement some sql to my game, but when I tried the compiler gave me 8 linking errors. Is it at all possible to use MySql C Connector with Dark GDK?

Here are the errors:
1>Main.obj : error LNK2019: unresolved external symbol _mysql_fetch_row@4 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol _mysql_num_fields@4 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol _mysql_store_result@4 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol _mysql_query@8 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Main.obj : error LNK2019: unresolved external symbol _mysql_init@4 referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Debug\AntonRPG.exe : fatal error LNK1120: 7 unresolved externals
Mireben
15
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 27th Jul 2010 21:21
I don't think Dark GDK has anything to do with this error. Check if the MySQL library is located in a directory where the linker can find it (e.g. together with the Dark GDK lib files). If not, either put it there, or add the library path to the project options, linker, general, "additional library directories". You can also try to "include" the library with a pragma line as described in this thread:

http://forum.thegamecreators.com/?m=forum_view&t=149360&b=22

Login to post a reply

Server time is: 2024-07-04 10:09:21
Your offset time is: 2024-07-04 10:09:21