List:MySQL++« Previous MessageNext Message »
From:Junji Kanemaru Date:February 23 2006 2:50pm
Subject:Re: mysqlpp complier error
View as plain text  
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::operator [](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>,__default_alloc_template<true,0>
>' requested
field_names.h: In method `const class string & mysqlpp::FieldNames::operator [](int)
const':
field_names.h:85: conversion from `int' to non-scalar type
`basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
>' requested


Junji Kanemaru wrote:
> 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}::operator ==(...)' 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
Thread
mysqlpp complier errorJunji Kanemaru23 Feb
  • Re: mysqlpp complier errorJunji Kanemaru23 Feb
  • Re: mysqlpp complier errorWarren Young23 Feb