List:MySQL++« Previous MessageNext Message »
From:Amit k. Saha Date:July 21 2008 12:11pm
Subject:Built MySQL++ on Linux, now what?
View as plain text  
Hi!

I have built MySQL++ using MySQL client libraries in custom locations
(using --with-mysql-lib, --with-mysql-include) and have got a MySQL++
installation in a location under my home directory.
(/home/as227057/mysqlpp-install)

I tried to compile the simple1.cpp under examples/ with all the
necessary options:

$ g++ -I /home/as227057/mysqlpp-install/include/mysql++
/home/as227057/dev-tools/mysql++-3.0.4/examples/ -l
/home/as227057/mysqlpp-install/lib/ simple1.cpp -lmysqlpp

But, I get a bunch of errors:

In file included from
/home/as227057/mysqlpp-install/include/mysql++/connection.h:38,
                 from
/home/as227057/mysqlpp-install/include/mysql++/mysql++.h:56,
                 from printdata.h:31,
                 from simple1.cpp:29:
/home/as227057/mysqlpp-install/include/mysql++/common.h:124:28: error:
mysql_version.h: No such file or directory
/home/as227057/mysqlpp-install/include/mysql++/common.h:182:20: error:
mysql.h: No such file or directory
simple1.cpp:31:29: error: mysql++/mysql++.h: No such file or directory
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:83: error:
expected ',' or '...' before 'bt'
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:84: error:
ISO C++ forbids declaration of 'enum_field_types' with no type
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:98: error:
'enum_field_types' does not name a type
/home/as227057/mysqlpp-install/include/mysql++/type_info.h: In
constructor 'mysqlpp::mysql_ti_sql_type_info::mysql_ti_sql_type_info()':
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:71: error:
class 'mysqlpp::mysql_ti_sql_type_info' does not have any field named
'base_type_'
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:75: error:
'FIELD_TYPE_NULL' was not declared in this scope
/home/as227057/mysqlpp-install/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)':
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:87: error:
class 'mysqlpp::mysql_ti_sql_type_info' does not have any field named
'base_type_'
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:87: error:
'bt' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:88: error:
'flags' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/type_info.h: At global scope:
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:168: error:
expected `)' before 't'
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:270: error:
'enum_field_types' does not name a type
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:304: error:
'enum_field_types' has not been declared
/home/as227057/mysqlpp-install/include/mysql++/type_info.h: In member
function 'const mysqlpp::mysql_type_info
mysqlpp::mysql_type_info::base_type() const':
/home/as227057/mysqlpp-install/include/mysql++/type_info.h:230: error:
'const class mysqlpp::mysql_ti_sql_type_info' has no member named
'base_type_'
/home/as227057/mysqlpp-install/include/mysql++/sql_buffer.h: At global scope:
/home/as227057/mysqlpp-install/include/mysql++/sql_buffer.h:71: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/sql_buffer.h:76: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/sql_buffer.h: In member
function 'bool mysqlpp::SQLBuffer::is_string()':
/home/as227057/mysqlpp-install/include/mysql++/sql_buffer.h:95: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/field.h: At global scope:
/home/as227057/mysqlpp-install/include/mysql++/field.h:58: error:
expected ',' or '...' before '*' token
/home/as227057/mysqlpp-install/include/mysql++/field.h:58: error: ISO
C++ forbids declaration of 'MYSQL_FIELD' with no type
/home/as227057/mysqlpp-install/include/mysql++/field.h: In constructor
'mysqlpp::Field::Field(int)':
/home/as227057/mysqlpp-install/include/mysql++/field.h:59: error: 'pf'
was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h:64: error:
'UNSIGNED_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h:65: error:
'NOT_NULL_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::auto_increment() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:85: error:
'AUTO_INCREMENT_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::binary_type() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:88: error:
'BINARY_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::blob_type() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:91: error:
'BLOB_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::enumeration() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:97: error:
'ENUM_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::multiple_key() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:110: error:
'MULTIPLE_KEY_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::primary_key() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:121: error:
'PRI_KEY_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::set_type() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:124: error:
'SET_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::timestamp() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:130: error:
'TIMESTAMP_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::unique_key() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:136: error:
'UNIQUE_KEY_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/field.h: In member
function 'bool mysqlpp::Field::zerofill() const':
/home/as227057/mysqlpp-install/include/mysql++/field.h:139: error:
'ZEROFILL_FLAG' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/mystring.h: At global scope:
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:197: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:211: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:226: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:243: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:256: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:270: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h: In member
function 'mysqlpp::mysql_type_info mysqlpp::String::type() const':
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:447: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h: In member
function 'mysqlpp::String& mysqlpp::String::operator=(const
std::string&)':
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:455: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/mystring.h: In member
function 'mysqlpp::String& mysqlpp::String::operator=(const char*)':
/home/as227057/mysqlpp-install/include/mysql++/mystring.h:468: error:
'string_type' is not a member of 'mysqlpp::mysql_type_info'
/home/as227057/mysqlpp-install/include/mysql++/row.h: At global scope:
/home/as227057/mysqlpp-install/include/mysql++/row.h:137: error:
expected `)' before 'row'
/home/as227057/mysqlpp-install/include/mysql++/result.h:168: error:
expected `)' before '*' token
/home/as227057/mysqlpp-install/include/mysql++/result.h:231: error:
expected `)' before '*' token
/home/as227057/mysqlpp-install/include/mysql++/result.h:281: error:
'MYSQL_RES' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/result.h:281: error:
template argument 1 is invalid
/home/as227057/mysqlpp-install/include/mysql++/result.h:308: error:
expected `)' before '*' token
/home/as227057/mysqlpp-install/include/mysql++/result.h:354: error:
'MYSQL_ROW' does not name a type
/home/as227057/mysqlpp-install/include/mysql++/result.h:385: error:
expected type-specifier before 'MYSQL_RES'
/home/as227057/mysqlpp-install/include/mysql++/result.h:401: error:
'MYSQL_RES' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/result.h:401: error:
template argument 1 is invalid
/home/as227057/mysqlpp-install/include/mysql++/result.h:401: error:
template argument 2 is invalid
/home/as227057/mysqlpp-install/include/mysql++/query.h: In member
function 'void mysqlpp::Query::storein_sequence(Sequence&, const
mysqlpp::SQLTypeAdapter&)':
/home/as227057/mysqlpp-install/include/mysql++/query.h:746: error:
'MYSQL_ROW' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/query.h:746: error:
expected `;' before 'd'
/home/as227057/mysqlpp-install/include/mysql++/query.h:747: error: 'd'
was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/query.h:749: error: 'd'
was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/query.h: In member
function 'void mysqlpp::Query::storein_set(Set&, const
mysqlpp::SQLTypeAdapter&)':
/home/as227057/mysqlpp-install/include/mysql++/query.h:803: error:
'MYSQL_ROW' was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/query.h:803: error:
expected `;' before 'd'
/home/as227057/mysqlpp-install/include/mysql++/query.h:804: error: 'd'
was not declared in this scope
/home/as227057/mysqlpp-install/include/mysql++/query.h:806: error: 'd'
was not declared in this scope



Now, what? Would really appreciate suggestions.

Thanks,
Amit

-- 
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.com
Skype: amitkumarsaha
Thread
Built MySQL++ on Linux, now what?Amit k. Saha21 Jul
  • Re: Built MySQL++ on Linux, now what?Warren Young21 Jul
    • Re: Built MySQL++ on Linux, now what?Amit k. Saha21 Jul
      • Re: Built MySQL++ on Linux, now what?Warren Young21 Jul
        • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
          • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
            • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
              • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
                  • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                    • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
                      • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                        • Re: Built MySQL++ on Linux, now what?Amit k. Saha23 Jul
                          • Re: Built MySQL++ on Linux, now what?Warren Young23 Jul
                            • Re: Built MySQL++ on Linux, now what?Amit k. Saha23 Jul