Re: Running MYSQL++ on OS X in Xcode
Date: November 14, 2005 07:13AM
I used the following extra linker flags:
-lmysqlpp -lmysqlclient -L/usr/local/mysql/lib
I've tried using them in this order as well
-lmysqlclient -L/usr/local/mysql/lib -lmysqlpp
mysql_congif --libs reveals this:
Nanashi:/usr/local/mysql/bin alexandergingerich$ ./mysql_config --libs
-L/usr/local/mysql/lib -lmysqlclient -lz -lm
My current additional linker flags setting:
-L/usr/local/mysql/lib -lmysqlclient -lz -lm -lmysqlpp
Resulting Error...still:
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
Edit: I'm compiling an application, not mysql++. I previously posted the mysql++ warning because I figured that it may come back to haunt me when I go to use mysql++, and it seems I may be right.
Edited 4 time(s). Last edit at 11/14/2005 10:14AM by Alexander Gingerich.
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.