Failed to Link - Mysql

BlitzMax Forums/BlitzMax Programming/Failed to Link - Mysql

Retimer(Posted 2007) [#1]
I'm using bruceys sql module. I have sql installed and running. But i'm getting this error:

C:/Program Files/BlitzMax/bin/ld.exe: cannot find -lmysql
Build Error: Failed to link C:/Program Files/BlitzMax/mod/bah.mod/dbmysql.mod/tests/test_01.debug.exe

what am I missing here?


N(Posted 2007) [#2]
Well, if you'd read on his site, you'd know you need the client libraries from here: http://dev.mysql.com/downloads/


Retimer(Posted 2007) [#3]
..
I failed to read that on his site, but I already have them. Don't believe I said that this is my first time coding blitz with sql =(. First time attempting to use his module.

Any other suggestions?


Gabriel(Posted 2007) [#4]
Still, you don't have them in the right place. That -lmysql suggests to me that there should be a file called libmysql.a and it should either be in the same folder as the module or more usually, in BlitzMax\Lib\

I don't use the module or mysql, but I think I'm reading the import syntax correctly there.


Retimer(Posted 2007) [#5]
There we go. Thanks a lot