List:MySQL++« Previous MessageNext Message »
From:Keshava Krishna Date:November 7 2009 2:53am
Subject:installing MySql/C++ in ubuntu 9.04
View as plain text  
Hello everyone,

I use ubuntu 9.04 , i have installed libmysql++3 and libmysql++-dev through
synaptics manager.
In my code i have put following lines.

#include <mysql++/mysql++.h>
using namespace std;
int main()
{

}

But i get lots of errors.

In file included from /usr/include/mysql++/sql_buffer.h:32,
                 from /usr/include/mysql++/stadapter.h:35,
                 from /usr/include/mysql++/qparms.h:35,
                 from /usr/include/mysql++/query.h:34,
                 from /usr/include/mysql++/mysql++.h:58,
                 from main.cpp:10:
/usr/include/mysql++/type_info.h:77: error: expected ‘,’ or ‘...’
before
‘bt’
/usr/include/mysql++/type_info.h:92: error: ‘enum_field_types’ does not name
a type
/usr/include/mysql++/type_info.h: In constructor
‘mysqlpp::mysql_ti_sql_type_info::mysql_ti_sql_type_info()’:
/usr/include/mysql++/type_info.h:71: error: class
‘mysqlpp::mysql_ti_sql_type_info’ does not have any field named
‘base_type_’
/usr/include/mysql++/type_info.h:71: error: ‘MYSQL_TYPE_NULL’ was not
declared in this scope
/usr/include/mysql++/type_info.h: In constructor
‘mysqlpp::mysql_ti_sql_type_info::mysql_ti_sql_type_info(const char*, const
std::type_info&, int)’:
/usr/include/mysql++/type_info.h:81: error: class
‘mysqlpp::mysql_ti_sql_type_info’ does not have any field named
‘base_type_’
/usr/include/mysql++/type_info.h:81: error: ‘bt’ was not declared in this
scope
/usr/include/mysql++/type_info.h:82: error: ‘flags’ was not declared in this
scope
/usr/include/mysql++/type_info.h: At global scope:
/usr/include/mysql++/type_info.h:162: error: expected `)' before ‘t’
/usr/include/mysql++/type_info.h:264: error: ‘enum_field_types’ does not
name a type


I am very new to MySql/C++, please help me out.


Regards,
Keshava.
+919449554001

Thread
installing MySql/C++ in ubuntu 9.04Keshava Krishna7 Nov
  • Re: installing MySql/C++ in ubuntu 9.04Warren Young9 Nov
    • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna10 Nov
      • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov
        • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna11 Nov
          • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna11 Nov
            • Re: installing MySql/C++ in ubuntu 9.04Nick Hastings11 Nov
              • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna11 Nov
                • Re: installing MySql/C++ in ubuntu 9.04Nick Hastings11 Nov
                • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov
            • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov
          • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov