• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Running mysql++ in xcode 2.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running mysql++ in xcode 2.1


  • Subject: Running mysql++ in xcode 2.1
  • From: Jonatan Taminau <email@hidden>
  • Date: Mon, 05 Sep 2005 09:06:48 +0200

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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: [ANN] Next CocoaHeads: Sep 8. New Chapter in Portland, OR (Sep 13)
  • Next by Date: Re: Debug/Release Library Matching
  • Previous by thread: [ANN] Next CocoaHeads: Sep 8. New Chapter in Portland, OR (Sep 13)
  • Next by thread: Don't invoke this method when build configurations are enabled
  • Index(es):
    • Date
    • Thread