dbTalk Databases Forums  

mysqlpp complier error

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss mysqlpp complier error in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Junji Kanemaru
 
Posts: n/a

Default mysqlpp complier error - 02-23-2006 , 08:47 AM






Hi,

I got following error. It is probably caused by buggy gcc(version 2.95.3)
If anybody out there know any workaround pls let me know.

Thanks,
-- Junji

---
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/local/include/mysql -g -O2 -c connection.cpp -Wp,-MD,.deps/connection.TPlo -o connection.o
In file included from fields.h:32,
from result.h:34,
from query.h:36,
from connection.cpp:32:
resiter.h:118: parse error before `<'
resiter.h:118: `ReturnType' was not declared in this scope
resiter.h:118: `SizeType' was not declared in this scope
resiter.h:119: `iterator' is not a template
resiter.h:122: ANSI C++ forbids declaration `subscript_iterator' with no type
resiter.h:126: `OnType' was not declared in this scope
resiter.h:126: `what' was not declared in this scope
resiter.h:126: `SizeType' was not declared in this scope
resiter.h:126: parse error before `)'
resiter.h:127: ANSI C++ forbids declaration `subscript_iterator' with no type
resiter.h:134: parse error before `&'
resiter.h:135: `mysqlpp::{anonymous struct}:perator ==(...)' must take exactly one argument
resiter.h:135: confused by earlier errors, bailing out
make[2]: *** [connection.lo] Error 1
make[2]: Leaving directory `/root/src/mysql++-2.0.7/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/mysql++-2.0.7'
make: *** [all] Error 2


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Junji Kanemaru
 
Posts: n/a

Default Re: mysqlpp complier error - 02-23-2006 , 08:50 AM






oops, I attached wrong output. here's std::iterator compiler error:

--

/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/local/include/mysql -g -O2 -c -o connection.lo connection.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/local/include/mysql -g -O2 -c connection.cpp -Wp,-MD,.deps/connection.TPlo -o connection.o
In file included from fields.h:32,
from result.h:34,
from query.h:36,
from connection.cpp:32:
resiter.h:119: no class template named `iterator' in `std'
In file included from result.h:35,
from query.h:36,
from connection.cpp:32:
field_names.h: In method `class string & mysqlpp::FieldNames:perator [](int)':
field_names.h:78: implicit declaration of function `int mysqlpp::at(...)'
field_names.h:78: conversion from `int' to non-scalar type `basic_string<char,string_char_traits<char>,__defa ult_alloc_template<true,0> >' requested
field_names.h: In method `const class string & mysqlpp::FieldNames:perator [](int) const':
field_names.h:85: conversion from `int' to non-scalar type `basic_string<char,string_char_traits<char>,__defa ult_alloc_template<true,0> >' requested


Junji Kanemaru wrote:
Quote:
Hi,

I got following error. It is probably caused by buggy gcc(version 2.95.3)
If anybody out there know any workaround pls let me know.

Thanks,
-- Junji

---
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/local/include/mysql -g -O2 -c connection.cpp -Wp,-MD,.deps/connection.TPlo -o connection.o
In file included from fields.h:32,
from result.h:34,
from query.h:36,
from connection.cpp:32:
resiter.h:118: parse error before `<'
resiter.h:118: `ReturnType' was not declared in this scope
resiter.h:118: `SizeType' was not declared in this scope
resiter.h:119: `iterator' is not a template
resiter.h:122: ANSI C++ forbids declaration `subscript_iterator' with no type
resiter.h:126: `OnType' was not declared in this scope
resiter.h:126: `what' was not declared in this scope
resiter.h:126: `SizeType' was not declared in this scope
resiter.h:126: parse error before `)'
resiter.h:127: ANSI C++ forbids declaration `subscript_iterator' with no type
resiter.h:134: parse error before `&'
resiter.h:135: `mysqlpp::{anonymous struct}:perator ==(...)' must take exactly one argument
resiter.h:135: confused by earlier errors, bailing out
make[2]: *** [connection.lo] Error 1
make[2]: Leaving directory `/root/src/mysql++-2.0.7/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/src/mysql++-2.0.7'
make: *** [all] Error 2


--
Junji Kanemaru
Linuon Inc.
Tokyo Japan

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: mysqlpp complier error - 02-23-2006 , 11:31 AM



Junji Kanemaru wrote:
Quote:
I got following error. It is probably caused by buggy gcc(version 2.95.3)
If anybody out there know any workaround pls let me know.
You have two choices: you can provide a patch to make it work on 2.95.x
again, or you can go back to 1.7.9, the last version that would work
without changes on 2.95.x. If you provide a patch, be warned that it
won't be accepted if it breaks 3.x or 4.x compatibility, or causes
warnings on these compilers.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.