dbTalk Databases Forums  

Running mysql++ in xcode 2.1

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Running mysql++ in xcode 2.1 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonatan Taminau
 
Posts: n/a

Default Running mysql++ in xcode 2.1 - 09-05-2005 , 02:06 AM






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



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Running mysql++ in xcode 2.1 - 09-06-2005 , 07:23 AM






Jonatan Taminau wrote:
Quote:
it was noted on the website that it was already tested to work together with
xcode)
Clarification: it is tested with the command-line compilers from Xcode.
It is not tested in the IDE.

Quote:
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Try reordering the link arguments. Some linkers behave differently
depending on which library is given first.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.