MySQL Forums
Forum List  »  Connector/C++

Building Connector/C++
Posted by: bahadır doğan
Date: February 15, 2009 09:00AM

Hello,
I have problems building Connector/C++. As README says, at first I use cmake and get these output:

$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- mysql_config was found /usr/bin/mysql_config
-- MySQL Include dir: /usr/include/mysql
-- MySQL Library dir: /usr/lib/mysql
-- MySQL CFLAGS: -I/usr/include/mysql -DBIG_JOINS=1 -fPIC
-- MySQL Link flags:
-- Configuring cppconn
-- Looking for include files HAVE_GLIB_H
-- Looking for include files HAVE_GLIB_H - found
-- Configuring drivermanager
-- Configuring test cases
-- Configuring examples
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bahadir/temp/mysql_connector_cpp_1_0_0_preview



Then I run make:

$ make clean
$ make
Scanning dependencies of target mysqlcppconn
[ 3%] Building CXX object cppconn/CMakeFiles/mysqlcppconn.dir/mysql_connection.o
In file included from /home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:26:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_metadata.h:33: warning: declaration ‘struct sql::ResultSet’ does not declare anything
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In constructor ‘sql::mysql::MySQL_Connection::MySQL_Connection(const std::string&, const std::string&, const std::string&, const std::string&)’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:83: error: ‘atoi’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘virtual std::string* sql::mysql::MySQL_Connection::getCatalog()’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:170: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:170: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:170: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:171: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:171: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:171: error: ‘rset’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘virtual void sql::mysql::MySQL_Connection::getWarnings()’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:222: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:222: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:222: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:223: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:223: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:223: error: ‘rset’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘virtual void sql::mysql::MySQL_Connection::releaseSavepoint(sql::Savepoint*)’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:283: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:283: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:283: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘virtual void sql::mysql::MySQL_Connection::rollback(sql::Savepoint*)’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:310: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:310: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:310: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘virtual void sql::mysql::MySQL_Connection::setCatalog(const std::string&)’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:324: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:324: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:324: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘virtual sql::Savepoint* sql::mysql::MySQL_Connection::setSavepoint(const std::string&)’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:354: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:354: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:354: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp: In member function ‘std::string sql::mysql::MySQL_Connection::getSessionVariable(const char*)’:
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:406: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:406: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:406: error: ‘stmt’ was not declared in this scope
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:409: error: ‘auto_ptr’ is not a member of ‘std’
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:409: error: expected primary-expression before ‘>’ token
/home/bahadir/temp/mysql_connector_cpp_1_0_0_preview/cppconn/mysql_connection.cpp:409: error: ‘rset’ was not declared in this scope
make[2]: *** [cppconn/CMakeFiles/mysqlcppconn.dir/mysql_connection.o] Error 1
make[1]: *** [cppconn/CMakeFiles/mysqlcppconn.dir/all] Error 2
make: *** [all] Error 2

What can be the problem? How can I build it?
Any suggestions?
Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Building Connector/C++
7530
February 15, 2009 09:00AM
3628
February 15, 2009 11:14AM
3345
February 15, 2009 03:31PM
3707
February 15, 2009 03:58PM
3190
February 15, 2009 03:46PM
2554
February 15, 2009 04:14PM
3095
February 16, 2009 02:13AM
2968
February 15, 2009 04:24PM


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.