List:MySQL++« Previous MessageNext Message »
From:Tim Murison Date:November 22 2004 9:50pm
Subject:Trouble with 1.7.23 and g++ 3.4.4
View as plain text  
Hi all,

I am trying to compile a simple example program, dbinfo.cc.
When I do the standard, ./configure, make, make install, everything
works without trouble. All the examples compile just fine.

The problem is when I try to compile using the installed version of
mysqlpp.

The following command issues some errors under g++ 3.4.4 (also under
3.3.5 -- different errors tho!).
g++ -I/usr/local/include -I/usr/include/mysql dbinfo.cc -g -c -O2

This command does not issue any errors under 3.4.4 or 3.3.5.
g++ -I../lib -I/usr/include/mysql dbinfo.cc -g -c -O2

The contents, in terms of .h and .hh files are the same in both
directories (/usr/local/include and /home/myuser/S-W/mysql
++-1.7.23/lib).

Attached are the errors generated by g++.
-- 
Tim Murison <tim.murison@stripped>
Ericsson


In file included from /usr/include/c++/3.3/backward/set.h:59,
                 from /usr/local/include/manip.h:9,
                 from /usr/local/include/vallist.h:4,
                 from /usr/local/include/row.h:7,
                 from /usr/local/include/compare.h:4,
                 from /usr/local/include/mysql++.h:6,
                 from util.h:4,
                 from dbinfo.cc:1:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file
includes at least one deprecated or antiquated header. Please consider using one of the
32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
In file included from /usr/local/include/vallist.h:4,
                 from /usr/local/include/row.h:7,
                 from /usr/local/include/compare.h:4,
                 from /usr/local/include/mysql++.h:6,
                 from util.h:4,
                 from dbinfo.cc:1:
/usr/local/include/manip.h:93: error: parse error before `&' token
/usr/local/include/manip.h:93: error: `std::ostream& mysqlpp::operator<<(...)' 
   must have an argument of class or enumerated type
/usr/local/include/manip.h:93: error: `std::ostream& mysqlpp::operator<<(...)' 
   must take exactly two arguments
/usr/local/include/manip.h:153: error: parse error before `&' token
/usr/local/include/manip.h:153: error: `std::ostream& mysqlpp::operator<<(...)' 
   must have an argument of class or enumerated type
/usr/local/include/manip.h:153: error: `std::ostream& mysqlpp::operator<<(...)' 
   must take exactly two arguments
/usr/local/include/manip.h:153: error: redefinition of `template<class ST> 
   std::ostream& mysqlpp::operator<<(...)'
/usr/local/include/manip.h:93: error: `template<class ST> std::ostream& 
   mysqlpp::operator<<(...)' previously declared here
/usr/local/include/manip.h:216: error: parse error before `&' token
/usr/local/include/manip.h:216: error: `std::ostream& mysqlpp::operator<<(...)' 
   must have an argument of class or enumerated type
/usr/local/include/manip.h:216: error: `std::ostream& mysqlpp::operator<<(...)' 
   must take exactly two arguments
/usr/local/include/manip.h:216: error: redefinition of `template<class ST> 
   std::ostream& mysqlpp::operator<<(...)'
/usr/local/include/manip.h:153: error: `template<class ST> std::ostream& 
   mysqlpp::operator<<(...)' previously declared here
/usr/local/include/manip.h:216: error: redefinition of `template<class ST> 
   std::ostream& mysqlpp::operator<<(...)'
/usr/local/include/manip.h:93: error: `template<class ST> std::ostream& 
   mysqlpp::operator<<(...)' previously declared here

In file included from /usr/include/c++/3.4/backward/set.h:59,
                 from /usr/local/include/manip.h:9,
                 from /usr/local/include/vallist.h:4,
                 from /usr/local/include/row.h:7,
                 from /usr/local/include/compare.h:4,
                 from /usr/local/include/mysql++.h:6,
                 from util.h:4,
                 from dbinfo.cc:1:
/usr/include/c++/3.4/backward/backward_warning.h:32:2: warning: #warning This file
includes at least one deprecated or antiquated header. Please consider using one of the
32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <iostream>
instead of the deprecated header <iostream.h>. To disable this warning use
-Wno-deprecated.
In file included from /usr/local/include/vallist.h:4,
                 from /usr/local/include/row.h:7,
                 from /usr/local/include/compare.h:4,
                 from /usr/local/include/mysql++.h:6,
                 from util.h:4,
                 from dbinfo.cc:1:
/usr/local/include/manip.h:93: error: expected `,' or `...' before '<' token
/usr/local/include/manip.h: In function `std::ostream&
mysqlpp::operator<<(mysqlpp::quote_type1, int)':
/usr/local/include/manip.h:94: error: `in' undeclared (first use this function)
/usr/local/include/manip.h:94: error: (Each undeclared identifier is reported only once
for each function it appears in.)
/usr/local/include/manip.h: At global scope:
/usr/local/include/manip.h:153: error: expected `,' or `...' before '<' token
/usr/local/include/manip.h: In function `std::ostream&
mysqlpp::operator<<(mysqlpp::quote_only_type1, int)':
/usr/local/include/manip.h:154: error: `in' undeclared (first use this function)
/usr/local/include/manip.h: At global scope:
/usr/local/include/manip.h:216: error: expected `,' or `...' before '<' token
/usr/local/include/manip.h: In function `std::ostream&
mysqlpp::operator<<(mysqlpp::quote_double_only_type1, int)':
/usr/local/include/manip.h:217: error: `in' undeclared (first use this function)

Thread
Trouble with 1.7.23 and g++ 3.4.4Tim Murison22 Nov
  • Re: Trouble with 1.7.23 and g++ 3.4.4Warren Young22 Nov
  • Re: Trouble with 1.7.23 and g++ 3.4.4Warren Young23 Nov
Re: Trouble with 1.7.23 and g++ 3.4.4Warren Young24 Nov