Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
works ok, examples won 't compile

works ok, examples won 't compile

2006-11-24       - By Elias Nakos

 Back
Reply:     1     2     3     4     5  

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)