Re: mysql C api problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bonesmere wrote:
hello, i'm a newbie in linux.

I have too problems with mysql C api, i have installed mysql version 3.23.58 and i have written  a small program to use mysql Api, but when i try to compile i always get the following error :

/usr/bin/ld: cannot find -lmysqlclient

i compile with:

gcc -c -I/usr/local/mysql/include/mysql/ p.c
gcc -o p p.o -L/usr/local/mysql/include/mysql/ -lmysqlclient

someone can help me?

# yum install mysql-devel

This will install the mysql development files, into /usr rather than /usr/local though.

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux