From: <no...@so...> - 2002-01-18 16:06:59
|
Bugs item #505425, was opened at 2002-01-18 08:06 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=107869&aid=505425&group_id=7869 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Unable to compile library Initial Comment: Hi, I'm trying to install the mysqlcppapi. Passed the configure stage with no problem. An error occurs while compilig : make all-recursive make[1]: Entering directory `/tmp/rpm/mysqlcppapi-1.7.5' Making all in mysqlcppapi make[2]: Entering directory `/tmp/rpm/mysqlcppapi-1.7.5/mysqlcppapi' Making all in datetime make[3]: Entering directory `/tmp/rpm/mysqlcppapi-1.7.5/mysqlcppapi/datetime' /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -g -O2 -I/usr/local/mysql/include -I/usr/local/mysql/include -c Date.cc mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -g -O2 -I/usr/local/mysql/include -I/usr/local/mysql/include -c Date.cc -fPIC -DPIC -o .libs/Date.lo In file included from date_base.h:4, from Date.h:5, from Date.cc:1: datetime_base.h:20: ISO C++ forbids declaration of `ostream' with no type datetime_base.h:20: `ostream' declared as a `virtual' field datetime_base.h:20: parse error before `&' token datetime_base.h:22: syntax error before `(' token datetime_base.h:25: parse error before `(' token datetime_base.h:25: syntax error before `(' token datetime_base.h:31: `struct mysqlcppapi::datetime_base::DTbase' does not declare a template type datetime_base.h:34: invalid use of `virtual' in template declaration of `virtual short int mysqlcppapi::datetime_base::DTbase::compare(const T&) const' datetime_base.h: In member function `bool mysqlcppapi::datetime_base::DTbase::operator==(const T&) const': datetime_base.h:37: parse error before `;' token For information g++ -v gives : Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.0.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --enable-languages=c,c++,f77,objc,java --program-suffix=-3.0.2 --enable-objc-gc --host=i586-mandrake-linux-gnu Thread model: posix gcc version 3.0.2 For more information, please contact me at : mat...@tr... M.D. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=107869&aid=505425&group_id=7869 |