List:MySQL++« Previous MessageNext Message »
From:Alex Luya Date:December 22 2008 3:46am
Subject:when compiling,get an error: mysql_version.h: No such file or directory
View as plain text  
Alex Luya a écrit :
> I have built MySQL++ using MySQL client libraries in custom locations
> (changed the file of Makefile.mingw) and have got a MySQL++
> installation in a location under C:\MySQL++.when I tried to compiled,I got following
> error,please help me,thank you.
> I am using
> --------------------------------------
> mysql++-3.0.8
> MySQL 5.0.67-Community Edition(come with xampp 1.6.8,I have downloaded dev
> files(include and lib),and put them under mysql directory)
> --------------------------------------
> g++ -c -o test_manip_manip.o -mthreads -g -Ilib -DUNICODE -D_UNICODE -DMYSQLPP_NO_DLL
> -I"D:\workspace\xampp-win32-1.
> .d -MD -MP test/manip.cpp
> g++ -o test_manip.exe test_manip_manip.o  -mthreads -g -L. -Wl,--enable-auto-import
> -Wl,--enable-runtime-pseudo-relo
> nt -lmysqlpp
> g++ -c -o test_null_comparison_null_comparison.o -mthreads -g -Ilib -DUNICODE
> -D_UNICODE -DMYSQLPP_NO_DLL -I"C:\Prog
> son_null_comparison.o -MFtest_null_comparison_null_comparison.o.d -MD -MP
> test/null_comparison.cpp
> In file included from lib/connection.h:38,
>                  from lib/mysql++.h:56,
>                  from test/null_comparison.cpp:27:
> lib/common.h:124:28: mysql_version.h: No such file or directory
> lib/common.h:182:20: mysql.h: No such file or directory
> In file included from lib/sql_buffer.h:32,
>                  from lib/stadapter.h:35,
>                  from lib/qparms.h:35,
>                  from lib/query.h:34,
>                  from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/type_info.h:83: error: expected `,' or `...' before "bt"
> lib/type_info.h:84: error: ISO C++ forbids declaration of `enum_field_types' with no
> type
> lib/type_info.h:98: error: `enum_field_types' does not name a type
> lib/type_info.h: In constructor
> `mysqlpp::mysql_ti_sql_type_info::mysql_ti_sql_type_info()':
> lib/type_info.h:71: error: class `mysqlpp::mysql_ti_sql_type_info' does not have any
> field named `base_type_'
> lib/type_info.h:77: error: `FIELD_TYPE_NULL' was not declared in this scope
> lib/type_info.h: In constructor
> `mysqlpp::mysql_ti_sql_type_info::mysql_ti_sql_type_info(const char*, const std::typ
> lib/type_info.h:87: error: class `mysqlpp::mysql_ti_sql_type_info' does not have any
> field named `base_type_'
> lib/type_info.h:87: error: `bt' was not declared in this scope
> lib/type_info.h:88: error: `flags' was not declared in this scope
> lib/type_info.h: At global scope:
> lib/type_info.h:168: error: expected `)' before "t"
> lib/type_info.h:270: error: `enum_field_types' does not name a type
> lib/type_info.h:304: error: `enum_field_types' has not been declared
> lib/type_info.h:305: error: ISO C++ forbids declaration of `t' with no type
> lib/type_info.h: In member function `const mysqlpp::mysql_type_info
> mysqlpp::mysql_type_info::base_type() const':
> lib/type_info.h:230: error: 'const class mysqlpp::mysql_ti_sql_type_info' has no
> member named 'base_type_'
> In file included from lib/stadapter.h:35,
>                  from lib/qparms.h:35,
>                  from lib/query.h:34,
>                  from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/sql_buffer.h: At global scope:
> lib/sql_buffer.h:71: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/sql_buffer.h:76: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/sql_buffer.h: In member function `bool mysqlpp::SQLBuffer::is_string()':
> lib/sql_buffer.h:95: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> In file included from lib/result.h:35,
>                  from lib/query.h:36,
>                  from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/field.h: At global scope:
> lib/field.h:58: error: expected `,' or `...' before '*' token
> lib/field.h:58: error: ISO C++ forbids declaration of `MYSQL_FIELD' with no type
> lib/field.h: In constructor `mysqlpp::Field::Field(int)':
> lib/field.h:59: error: `pf' was not declared in this scope
> lib/field.h:64: error: `UNSIGNED_FLAG' was not declared in this scope
> lib/field.h:65: error: `NOT_NULL_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::auto_increment() const':
> lib/field.h:85: error: `AUTO_INCREMENT_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::binary_type() const':
> lib/field.h:88: error: `BINARY_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::blob_type() const':
> lib/field.h:91: error: `BLOB_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::enumeration() const':
> lib/field.h:97: error: `ENUM_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::multiple_key() const':
> lib/field.h:110: error: `MULTIPLE_KEY_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::primary_key() const':
> lib/field.h:121: error: `PRI_KEY_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::set_type() const':
> lib/field.h:124: error: `SET_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::timestamp() const':
> lib/field.h:130: error: `TIMESTAMP_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::unique_key() const':
> lib/field.h:136: error: `UNIQUE_KEY_FLAG' was not declared in this scope
> lib/field.h: In member function `bool mysqlpp::Field::zerofill() const':
> lib/field.h:139: error: `ZEROFILL_FLAG' was not declared in this scope
> In file included from lib/row.h:33,
>                  from lib/result.h:40,
>                  from lib/query.h:36,
>                  from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/mystring.h: At global scope:
> lib/mystring.h:197: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h:211: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h:226: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h:243: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h:256: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h:270: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h: In member function `mysqlpp::mysql_type_info mysqlpp::String::type()
> const':
> lib/mystring.h:450: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h: In member function `mysqlpp::String&
> mysqlpp::String::operator=(const std::string&)':
> lib/mystring.h:458: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> lib/mystring.h: In member function `mysqlpp::String&
> mysqlpp::String::operator=(const char*)':
> lib/mystring.h:471: error: `string_type' is not a member of
> `mysqlpp::mysql_type_info'
> In file included from lib/result.h:40,
>                  from lib/query.h:36,
>                  from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/row.h: At global scope:
> lib/row.h:137: error: expected `)' before "row"
> In file included from lib/query.h:36,
>                  from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/result.h:168: error: expected `)' before '*' token
> lib/result.h:231: error: expected `)' before '*' token
> lib/result.h:281: error: `MYSQL_RES' was not declared in this scope
> lib/result.h:282: error: template argument 1 is invalid
> lib/result.h:282: error: explicit specialization of non-template `<type
> error>'
> lib/result.h:308: error: expected `)' before '*' token
> lib/result.h:354: error: `MYSQL_ROW' does not name a type
> lib/result.h:385: error: `MYSQL_RES' has not been declared
> lib/result.h:401: error: `MYSQL_RES' was not declared in this scope
> lib/result.h:401: error: template argument 1 is invalid
> lib/result.h:401: error: template argument 2 is invalid
> lib/result.h:401: error: ISO C++ forbids declaration of `result_' with no type
> In file included from lib/mysql++.h:58,
>                  from test/null_comparison.cpp:27:
> lib/query.h: In member function `void mysqlpp::Query::storein_sequence(Sequence&,
> const mysqlpp::SQLTypeAdapter&)':
> lib/query.h:750: error: `MYSQL_ROW' was not declared in this scope
> lib/query.h:750: error: expected `;' before "d"
> lib/query.h:751: error: `d' was not declared in this scope
> lib/query.h:753: error: `d' was not declared in this scope
> lib/query.h: In member function `void mysqlpp::Query::storein_set(Set&, const
> mysqlpp::SQLTypeAdapter&)':
> lib/query.h:808: error: `MYSQL_ROW' was not declared in this scope
> lib/query.h:808: error: expected `;' before "d"
> lib/query.h:809: error: `d' was not declared in this scope
> lib/query.h:811: error: `d' was not declared in this scope
> mingw32-make: *** [test_null_comparison_null_comparison.o] Error 1
>   


Thread
when compiling,get an error: mysql_version.h: No such file or directoryAlex Luya22 Dec
  • Re: when compiling,get an error: mysql_version.h: No such file or directoryWarren Young22 Dec