Cannot find -lmysql.

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: Sun Jan 09, 2011 7:19 am

Cannot find -lmysql.

Post by visaboy » Wed Apr 27, 2011 5:20 am

Hello,

I tried compiling the accountserver.exe with build target "all" and it compiled without issues but when the executable file is opened it looks for sqlite and I'm using mysql.

I went into Code::Block and changed the target to "Windows (MySQL Support)" and compiled it.

Now I keep getting the message:

Code: Select all

ld.exe||cannot find -lmysql|

||=== Build finished: 1 errors, 0 warnings ===|
I tried doing a google search for a solution without luck.

How can I resolve that particular error?

Thank you.
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
User avatar
Bertram
Knight
Knight
Posts: 1026
Joined: Tue Sep 07, 2004 3:55 pm
Location: France

Re: Cannot find -lmysql.

Post by Bertram » Wed Apr 27, 2011 8:29 am

Hi visaboy,

Currently, Crush is only providing the sqlite headers and lib for compilation in his mana/tmw-lib pack.

Hence, we're defaulting the server build against sqlite.

To be able to test a proper mysql compilation, you'll have to download the libmysql.dll libmysql.a, and and all the mysql headers files
and put them respectively in the dll/, lib/, and include/ sub-folder.
You can obtain the mysql connectors here,
http://www.mysql.fr/downloads/connector/cpp/

And the sourcecode to compile a own made mysql lib here:
http://www.mysql.fr/downloads/mirror.ph ... 90#mirrors

I'm sure it's no simple task (or Crush would have done it already), so I wish you good luck on it.

Best regards.
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: Sun Jan 09, 2011 7:19 am

Re: Cannot find -lmysql.

Post by visaboy » Wed Apr 27, 2011 9:34 pm

Bertram wrote:Hi visaboy,

Currently, Crush is only providing the sqlite headers and lib for compilation in his mana/tmw-lib pack.

Hence, we're defaulting the server build against sqlite.

To be able to test a proper mysql compilation, you'll have to download the libmysql.dll libmysql.a, and and all the mysql headers files
and put them respectively in the dll/, lib/, and include/ sub-folder.
You can obtain the mysql connectors here,
http://www.mysql.fr/downloads/connector/cpp/

And the sourcecode to compile a own made mysql lib here:
http://www.mysql.fr/downloads/mirror.ph ... 90#mirrors

I'm sure it's no simple task (or Crush would have done it already), so I wish you good luck on it.

Best regards.
Hi Bertram,

I moved all 3 folders inside the mysql.rar and now it is working perfectly fine.

Thank you so much!
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
User avatar
Bertram
Knight
Knight
Posts: 1026
Joined: Tue Sep 07, 2004 3:55 pm
Location: France

Re: Cannot find -lmysql.

Post by Bertram » Thu Apr 28, 2011 8:09 am

You're welcome ;)
Post Reply