Compile Problem with MySQL C API on MAC OS X 10.6

Posted by Dennis on Stack Overflow See other posts from Stack Overflow or by Dennis
Published on 2010-05-23T16:57:36Z Indexed on 2010/05/23 17:01 UTC
Read the original article Hit count: 415

Filed under:
|
|
|

Hi guys,

i've a Problem with MySQL C API and Mac OS X 10.6. When i want to compile a SQL Client Program, it aborts with this Error Message

ld: library not found for -lmysqlclient

collect2: ld returned 1 exit status

I compile with this command:

g++ -I /usr/local/mysql/include/ -L /usr/local/mysql/lib/ -lmysqlclient main.cpp

I've tried the Headers and Librarys in different locations - no effect I've downloaded the headers and the Library from an other Destination - Same effect as before

Any Ideas what i am doing wrong? If there is a thread allready i want to excuse (nothing found in search)!

Greeting, Dennis

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mac