tags:

views:

68

answers:

1

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

A: 

Hi all,

so after many days, of not intensive work ;-) her's the fault: The Compiler dont accepted the Library if it is in the Standart install directory, but now i copied the Include and lib files into /usr/local/include and /usr/local/lib. Now it compiles without Errors :-)

I dont know why it only works in the standart Paths but how ever now it works

Dennis

Dennis S.