List:MySQL++« Previous MessageNext Message »
From:Jonatan Taminau Date:September 5 2005 7:08am
Subject:Running mysql++ in xcode 2.1
View as plain text  

I'm trying to use mysql in a C++ project using Xcode 2.1. (and i'm using MAC
OS X 10.4.2). In order to do this i also installed mysql++ (because it was
noted on the website that it was already tested to work together with

So in xcode I put the following search paths:

/usr/local/include /usr/local/mysql/include

/usr/local/lib /usr/local/mysql/lib

which are the correct paths including the headers and lib files.
I also added the flags:

-bind_at_load -lmysqlpp -lmysqlclient

Now, if i run my testprogram (with #include <mysql++.h>) i get the following
runtime error message (with ZeroLink disabeled):

dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /usr/local/lib/libmysqlpp.2.dylib
Expected in: flat namespace

dyld: Symbol not found: _mysql_init
Referenced from: /usr/local/lib/libmysqlpp.2.dylib
Expected in: flat namespace

indicating that he couldn't find the mysqlclient lib. (the headers were
found otherwise an 'couldn't find <mysql.h>' error was given). But i don't
have a clue why he can't find that lib?

** with ZeroLink enabeled it's the following error:
** ZeroLink: unknown symbol '__ZN7mysqlpp10ConnectionC1Eb'

I'm new with Xcode so i don't know if the problem causing factor is 'a wrong
setting in Xcode', mysql++, mysql or just me forgetting something

Already thanks for answers and/or suggestions,

Running mysql++ in xcode 2.1Jonatan Taminau5 Sep
  • Re: Running mysql++ in xcode 2.1Warren Young6 Sep