Running Mysql++ in Xcode 2.1
Posted by: Jonatan Taminau
Date: September 01, 2005 04:01AM

Hello,

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 xcode).

So in xcode I put the following search paths:

HEADER_SEARCH_PATHS:
/usr/local/include /usr/local/mysql/include

LIBRARY_SEARCH_PATHS:
/usr/local/lib /usr/local/mysql/lib

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

OTHER_LINKER_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 essential...

Already thanks for answers and/or suggestions,
Jonatan

Options: ReplyQuote


Subject
Views
Written By
Posted
Running Mysql++ in Xcode 2.1
895
September 01, 2005 04:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.