MySQL Forums
Forum List  »  Connector/C++

Mysql Connector/C++ on Mac OS X Tiger
Posted by: Tomasz Olszanowski
Date: January 27, 2009 12:09PM

Hi
I've just stating with Mysql and CMake and I have problem with preparing Mysql Connector/C++ 1.0.2 to work with mine Mac. I work on Mac OS X 10.4.11 Tiger use Xcode 2.2. I've install Mysql server 5.1.30, GTK+ 2.14 with Glib 2.18, Cmake 2.6.2 and I tryd to install the Connector with the readme file information and it failed. When I write command /path/to/mysql-connector $ make I have few warning but in the end it's like that:

[100%] Building CXX object test/unit/CMakeFiles/example_tests.dir/example/example.o
Linking CXX executable example_tests
[100%] Built target example_tests

When I build poject in C++ under command line it compile well and run but it tells me ZeroLink: unknown symbol '_get_driver_instance'. I'm install Connector few time in different way but it stile the same.

Warning which i have:

[ 20%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_statement.o

/developer/mysql/driver/mysql_statement.cpp: In constructor 'sql::mysql::MySQL_Statement::MySQL_Statement(sql::mysql::MySQL_Connection*, sql::mysql::util::my_shared_ptr<sql::mysql::MySQL_DebugLogger>*)':

/developer/mysql/driver/mysql_statement.cpp:39: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual bool sql::mysql::MySQL_Statement::execute(const std::string&)':

/developer/mysql/driver/mysql_statement.cpp:107: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual sql::ResultSet* sql::mysql::MySQL_Statement::executeQuery(const std::string&)':

/developer/mysql/driver/mysql_statement.cpp:121: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual sql::ResultSet* sql::mysql::MySQL_Statement::getResultSet()':

/developer/mysql/driver/mysql_statement.cpp:166: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual bool sql::mysql::MySQL_Statement::getMoreResults()':

/developer/mysql/driver/mysql_statement.cpp:213: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual long long int sql::mysql::MySQL_Statement::getUpdateCount()':

/developer/mysql/driver/mysql_statement.cpp:241: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

[ 22%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_warning.o
Linking CXX shared library libmysqlcppconn.dylib

[ 42%] Building CXX object driver/CMakeFiles/mysqlcppconn-static.dir/mysql_statement.o

/developer/mysql/driver/mysql_statement.cpp: In constructor 'sql::mysql::MySQL_Statement::MySQL_Statement(sql::mysql::MySQL_Connection*, sql::mysql::util::my_shared_ptr<sql::mysql::MySQL_DebugLogger>*)':

/developer/mysql/driver/mysql_statement.cpp:39: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual bool sql::mysql::MySQL_Statement::execute(const std::string&)':

/developer/mysql/driver/mysql_statement.cpp:107: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual sql::ResultSet* sql::mysql::MySQL_Statement::executeQuery(const std::string&)':

/developer/mysql/driver/mysql_statement.cpp:121: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual sql::ResultSet* sql::mysql::MySQL_Statement::getResultSet()':

/developer/mysql/driver/mysql_statement.cpp:166: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual bool sql::mysql::MySQL_Statement::getMoreResults()':

/developer/mysql/driver/mysql_statement.cpp:213: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

/developer/mysql/driver/mysql_statement.cpp: In member function 'virtual long long int sql::mysql::MySQL_Statement::getUpdateCount()':

/developer/mysql/driver/mysql_statement.cpp:241: warning: converting negative value '-0x00000000000000001' to 'long long unsigned int'

[ 44%] Building CXX object driver/CMakeFiles/mysqlcppconn-static.dir/mysql_warning.o

Linking CXX static library libmysqlcppconn-static.a

[ 47%] Building CXX object examples/CMakeFiles/connection_meta_schemaobj.dir/connection_meta_schemaobj.o

/developer/mysql/examples/examples.h:50: warning: 'test_data' defined but not used

Linking CXX executable connection_meta_schemaobj

[ 54%] Building CXX object examples/CMakeFiles/resultset_binary.dir/resultset_binary.o

/developer/mysql/examples/resultset_binary.cpp: In function 'int main(int, const char**)':

/developer/mysql/examples/resultset_binary.cpp:56: warning: unused variable 'sign'

/developer/mysql/examples/resultset_binary.cpp: At global scope:

/developer/mysql/examples/resultset_binary.cpp:38: warning: 'void validateResultSet(std::auto_ptr<sql::ResultSet>&, _test_data*, _test_data*)' declared 'static' but never defined

Linking CXX executable resultset_binary

[ 60%] Building CXX object test/CMakeFiles/driver_test.dir/driver_test.o

/developer/mysql/test/test_common.cpp: In function 'void test_result_set_check_out_of_bound(sql::ResultSet*)':

/developer/mysql/test/test_common.cpp:1054: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual int sql::ResultSet::getInt(unsigned int) const'

/developer/mysql/test/test_common.cpp:1066: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual std::string sql::ResultSet::getString(unsigned int) const'

/developer/mysql/test/test_common.cpp:1078: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual double sql::ResultSet::getDouble(unsigned int) const'

/developer/mysql/test/test_common.cpp:1094: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual bool sql::ResultSet::isNull(unsigned int) const'

Linking CXX executable driver_test

[ 61%] Building CXX object test/CMakeFiles/static_test.dir/static_test.o

/developer/mysql/test/test_common.cpp: In function 'void test_result_set_check_out_of_bound(sql::ResultSet*)':

/developer/mysql/test/test_common.cpp:1054: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual int sql::ResultSet::getInt(unsigned int) const'

/developer/mysql/test/test_common.cpp:1066: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual std::string sql::ResultSet::getString(unsigned int) const'

/developer/mysql/test/test_common.cpp:1078: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual double sql::ResultSet::getDouble(unsigned int) const'

/developer/mysql/test/test_common.cpp:1094: warning: passing negative value '-0x0000000000000007b' for argument 1 to 'virtual bool sql::ResultSet::isNull(unsigned int) const'

Linking CXX executable static_test

[ 72%] Building CXX object test/CJUnitTestsPort/CMakeFiles/CJUnitTestsPort.dir/framework/test_tapOutputter.o

/developer/mysql/test/CJUnitTestsPort/framework/test_tapOutputter.cpp: In member function 'virtual void testsuite::TAP::Summary(unsigned int, unsigned int, std::vector<int, std::allocator<int> >)':

/developer/mysql/test/CJUnitTestsPort/framework/test_tapOutputter.cpp:104: warning: statement has no effect

[ 95%] Building CXX object test/unit/CMakeFiles/example_tests.dir/__/CJUnitTestsPort/framework/test_tapOutputter.o

/developer/mysql/test/CJUnitTestsPort/framework/test_tapOutputter.cpp: In member function 'virtual void testsuite::TAP::Summary(unsigned int, unsigned int, std::vector<int, std::allocator<int> >)':

/developer/mysql/test/CJUnitTestsPort/framework/test_tapOutputter.cpp:104: warning: statement has no effect

Has any one have some id??

Options: ReplyQuote


Subject
Views
Written By
Posted
Mysql Connector/C++ on Mac OS X Tiger
6397
January 27, 2009 12:09PM


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.