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: 09 Jan 2011, 07:19

Cannot find -lmysql.

Post by visaboy » 27 Apr 2011, 05:20

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: 07 Sep 2004, 15:55
Location: France

Re: Cannot find -lmysql.

Post by Bertram » 27 Apr 2011, 08:29

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: 09 Jan 2011, 07:19

Re: Cannot find -lmysql.

Post by visaboy » 27 Apr 2011, 21:34

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: 07 Sep 2004, 15:55
Location: France

Re: Cannot find -lmysql.

Post by Bertram » 28 Apr 2011, 08:09

You're welcome ;)
Post Reply