List:MySQL++« Previous MessageNext Message »
From:Calle Kabo Date:September 13 2008 6:34pm
Subject:xcode and mysql++
View as plain text  

I'm trying to compile a test-project using mysql++ under XCode 3.1 on
Mac OS 10.5.

I have set the "Header Search Paths" for the project to include
/usr/local/include/mysql++ and "Library Search Paths" to include
/usr/local/lib. I've also done mysql_config --libs and put the result
(-L/Applications/MAMP/Library/lib/mysql -lmysqlclient -lz -lm) in
"Other Linker Flags"
But I'm getting the following errors:

Building target "cpptest" of project "cpptest" with configuration "Release"

Checking Dependencies

CompileC build/
/Users/kabo/cpptest/main.cpp normal i386 c++
    cd /Users/kabo/cpptest
    /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0
-pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os
-mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot
/Developer/SDKs/MacOSX10.5.sdk -fvisibility=hidden
-fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2
-c /Users/kabo/cpptest/main.cpp -o

normal i386
    cd /Users/kabo/cpptest
    /Developer/usr/bin/g++-4.0 -arch i386 -isysroot
/Developer/SDKs/MacOSX10.5.sdk -L/Users/kabo/cpptest/build/Release
-F/Users/kabo/cpptest/build/Release -filelist
-mmacosx-version-min=10.5 -L/Applications/MAMP/Library/lib/mysql -lz
-lm -lmysqlclient -o
Undefined symbols:
  "mysqlpp::Connection::connect(char const*, char const*, char const*,
char const*, unsigned int)", referenced from:
      _main in main.o
  "mysqlpp::Connection::~Connection()", referenced from:
      _main in main.o
      _main in main.o
  "mysqlpp::Connection::Connection(bool)", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Can anybody please help me? Thanks!
xcode and mysql++Calle Kabo13 Sep
  • Re: xcode and mysql++Joel Fielder13 Sep
    • Re: xcode and mysql++Calle Kabo13 Sep