  | | | works ok, examples won 't compile | works ok, examples won 't compile 2006-11-24 - By Elias Nakos
Back hi Ubuntu Dapper Drake gcc 4.0.3 MySql 5.0 Pentium M
mysql, mysql++ and all relevant packages installed from ubuntu repositories
the following code: #include <stdio.h> #include <mysql++.h>
int main (void) {
return 29; }
works ok with the command c++ -I/usr/include/mysql -I/usr/include/mysql++/ -lmysqlclient -lmysqlpp simplest.cpp
into the examples folder when typing make -f Makefile.simple I get the following output: -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- g++ -I/usr/include/mysql -I /usr/include/mysql++ -I../lib -lmysqlclient -lmysqlpp -O0 -c util.cpp stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ?cchar? has not been declared stock.h: In constructor ?stock_value_list<Manip>::stock_value_list(const stock*, int*, Manip)?: stock.h:41: error: class ?stock_value_list<Manip>? does not have any field named ?delem? stock.h: At global scope: stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ?cchar? has not been declared stock.h: In constructor ?stock_field_list<Manip>::stock_field_list(const stock*, int*, Manip)?: stock.h:41: error: class ?stock_field_list<Manip>? does not have any field named ?delem? stock.h: At global scope: stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h: In constructor ?stock_equal_list<Manip>::stock_equal_list(const stock*, int*, int*, Manip)?: stock.h:41: error: class ?stock_equal_list<Manip>? does not have any field named ?delem? stock.h:41: error: class ?stock_equal_list<Manip>? does not have any field named ?comp? stock.h: At global scope: stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h: In constructor ?stock_cus_value_list<Manip>::stock_cus_value_list(const stock*, int*, Manip, std::vector<bool, std::allocator<bool> >*)?: stock.h:41: error: class ?stock_cus_value_list<Manip>? does not have any field named ?delem? stock.h: At global scope: stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h: In constructor ?stock_cus_field_list<Manip>::stock_cus_field_list(const stock*, int*, Manip, std::vector<bool, std::allocator<bool> >*)?: stock.h:41: error: class ?stock_cus_field_list<Manip>? does not have any field named ?delem? stock.h: At global scope: stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ISO C++ forbids declaration of ?cchar? with no type stock.h:41: error: expected ?;? before ?*? token stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h: In constructor ?stock_cus_equal_list<Manip>::stock_cus_equal_list(const stock*, int*, int*, Manip, std::vector<bool, std::allocator<bool> >*)?: stock.h:41: error: class ?stock_cus_equal_list<Manip>? does not have any field named ?delem? stock.h:41: error: class ?stock_cus_equal_list<Manip>? does not have any field named ?comp? stock.h: At global scope: stock.h:41: error: ?sql_dummy_type? has not been declared stock.h:41: error: ?sql_char? in namespace ?mysqlpp? does not name a type stock.h:41: error: ?sql_bigint? in namespace ?mysqlpp? does not name a type stock.h:41: error: ?sql_double? in namespace ?mysqlpp? does not name a type stock.h:41: error: ?sql_double? in namespace ?mysqlpp? does not name a type stock.h:41: error: ?sql_date? in namespace ?mysqlpp? does not name a type stock.h:41: error: expected ?,? or ?...? before ?&? token stock.h:41: error: ISO C++ forbids declaration of ?Row? with no type stock.h:41: error: expected ?,? or ?...? before ?&? token stock.h:41: error: ISO C++ forbids declaration of ?Row? with no type stock.h:41: error: expected unqualified-id before ?&? token stock.h:41: error: expected ?,? or ?...? before ?&? token stock.h:41: error: ISO C++ forbids declaration of ?parameter? with no type stock.h:41: error: ?stock::stock(int)? cannot be overloaded stock.h:41: error: with ?stock::stock(int)? stock.h:41: error: expected unqualified-id before ?&? token stock.h:41: error: expected ?,? or ?...? before ?&? token stock.h:41: error: ISO C++ forbids declaration of ?parameter? with no type stock.h:41: error: ?void stock::set(int)? cannot be overloaded stock.h:41: error: with ?void stock::set(int)? stock.h:41: error: expected unqualified-id before ?&? token stock.h:41: error: expected ?,? or ?...? before ?&? token stock.h:41: error: ISO C++ forbids declaration of ?parameter? with no type stock.h:41: error: ?void stock::set(int)? cannot be overloaded stock.h:41: error: with ?void stock::set(int)? stock.h:41: error: expected unqualified-id before ?&? token stock.h:41: error: expected ?,? or ?...? before ?&? token stock.h:41: error: ISO C++ forbids declaration of ?parameter? with no type stock.h:41: error: ?stock::stock(int)? cannot be overloaded stock.h:41: error: with ?stock::stock(int)? stock.h:41: error: ?quote_type0? was not declared in this scope stock.h:41: error: template argument 1 is invalid stock.h:41: error: ?quote_type0? was not declared in this scope stock.h:41: error: template argument 1 is invalid stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? was not declared in this scope stock.h:41: error: ?d? was not declared in this scope stock.h:41: error: expected primary-expression before ?m? stock.h:41: error: ISO C++ forbids initialization of member ?value_list? stock.h:41: error: making ?value_list? static stock.h:41: error: template declaration of ?stock_value_list<Manip> value_list? stock.h:41: error: ?do_nothing_type0? was not declared in this scope stock.h:41: error: template argument 1 is invalid stock.h:41: error: ?do_nothing_type0? was not declared in this scope stock.h:41: error: template argument 1 is invalid stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? was not declared in this scope stock.h:41: error: ?d? was not declared in this scope stock.h:41: error: expected primary-expression before ?m? stock.h:41: error: ISO C++ forbids initialization of member ?field_list? stock.h:41: error: making ?field_list? static stock.h:41: error: template declaration of ?stock_field_list<Manip> field_list? stock.h:41: error: ?quote_type0? was not declared in this scope stock.h:41: error: template argument 1 is invalid stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? has not been declared stock.h:41: error: ?cchar? was not declared in this scope stock.h:41: error: ?d? was not declared in this scope stock.h:41: error: ?cchar? was not declared in this scope stock.h:41: error: ?c? was not declared in this scope stock.h:41: error: expected primary-expression before ?m? stock.h:41: error: ISO C++ forbids initialization of member ?equal_list? stock.h:41: error: making ?equal_list? static stock.h:41: error: template declaration of ?stock_equal_list<Manip> equal_list? stock.h:41: error: ?quote_type0? was not declared in this scope stock.h:41: error: template argument 1 is invalid -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- --
any guesses on what could be going wrong.... thanks. elias
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Windows Live? Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb
-- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=mysql@(protected)
|
|
 |