List:MySQL++« Previous MessageNext Message »
From:Raphaël Reverdy Date:February 6 2007 5:33pm
Subject:Problems with Xcode
View as plain text  
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.
Thread
Problems with XcodeRaphaël Reverdy6 Feb
  • Re: Problems with XcodeWarren Young6 Feb
    • Re: Problems with XcodeRaphaël Reverdy7 Feb
      • Re: Problems with XcodeOvidiu Bivolaru7 Feb