4 messages in com.mysql.lists.plusplusProblems with Xcode
FromSent OnAttachments
Raphaël Reverdy06 Feb 2007 09:33 
Warren Young06 Feb 2007 11:02 
Raphaël Reverdy07 Feb 2007 05:21 
Ovidiu Bivolaru07 Feb 2007 05:25 
Subject:Problems with Xcode
From:Raphaël Reverdy (raph@gmail.com)
Date:02/06/2007 09:33:08 AM
List:com.mysql.lists.plusplus

Hello.

I'm new with compilation in c++. What I have done : download mysql++ from tengentsoft.net/mysql++ cd mysql++-2.2.0 ./configure --with-mysql=/usr/local/mysql make sudo make install

It builds all. Examples works. Great. So, when i try to create my own application. From example with xCode. I create a new project. Go to the projects settings Header Search Paths : /usr/local/mysql/include User Header Search Path : /usr/local/include/mysql++ Library Search Paths : /usr/local/mysql/lib ZeroLink : No (default) Other Linker Flags : -lmysqlclient -lm -lz

In my file : main.cpp #include <iostream> #include <mysql++.h> #include <iostream>

using namespace std;

int main (int argc, char * const argv[]) { mysqlpp::Connection con = new mysqlpp::Connection("mybase","localhost","root"); return 0; };

Xcode builds without errors but when the program runs : [Session started at 2007-02-06 18:23:31 +0100.] ZeroLink: unknown symbol '__ZN7mysqlpp10ConnectionC1EPKcS2_S2_S2_jcjS2_j'

cppproject has exited due to signal 6 (SIGABRT).

Please help me.

NB: excuse me for my bad english.