Forum > Linux

ODBC lazarus


Hello !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I use Fedora Core 2, and install fpc, fpcsrc from rpm package. I use lazarus source code, when compiling with "make clean all" in my home directory.
MySQL 3, MySQL devel packages ...
When I add MySQL package in IDE all is OK, but when is project run stop with error :

         /usr/bin/ld: Cant find -lmysqlclient
In a forum I read " ->"
How do that ??????????????????

I read


ln-s /usr/lib/mysql/ /usr/bin/lmysqlcient
ln-s /usr/lib/mysql/ /usr/bin/
ln-s /usr/lib/mysql/ /usr/bin/mysqlcient

not solve the problem.

Please help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Do'nt forget to change the /etc/fpc.cfg and enable :


and the following line must be:

 ln -s /usr/lib/mysql/ /usr/lib/
Pay attention that the folder is /usr/lib (not /usr/bin)

Have a nice day...

I have another error

 When i placed control on form and RUN

Error: unit MYSQLDB cant't be shared or static linked :cry:

Vincent Snijders:
This looks like an fpc bug. A work-around may be to do Build All, before doing run.


[0] Message Index

Go to full version