The README states, "You do need a fairly recent compiler (g++ 3.1 ...)" I tried 2.95.3 with no luck; 3.1 and 3.2.2 work fine.
Hope this helps! --PSRC
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-09-19
I have also the problem to get it running under gcc 2.95, because this is what you need to build Qtopia based device (embedded linux, for example sharp zaurus)
I think it should be possible to let it run under 2.95, the compiler is not so bad.
But have not succeed yet. At least I was able to compile my own file by changing XmlRpcValue.h like this:
// XmlRpcValue const& operator[](int i) const { assertArray(i+1); return _value.asArray->at(i); }
Ok, I am not heeding the dire warning about using the latest version of g++.
I'm getting this error using egcs-2.91.66:
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o src/XmlRpcValue.o src/XmlRpcValue.cpp
In file included from src/XmlRpcValue.cpp:5:
src/base64.h:41: parse error before `<'
src/base64.h:47: confused by earlier errors, bailing out
make: *** [src/XmlRpcValue.o] Error 1
Any help?
Andargor
> I'm getting this error using egcs-2.91.66:
The README states, "You do need a fairly recent compiler (g++ 3.1 ...)" I tried 2.95.3 with no luck; 3.1 and 3.2.2 work fine.
Hope this helps! --PSRC
I have also the problem to get it running under gcc 2.95, because this is what you need to build Qtopia based device (embedded linux, for example sharp zaurus)
I think it should be possible to let it run under 2.95, the compiler is not so bad.
But have not succeed yet. At least I was able to compile my own file by changing XmlRpcValue.h like this:
// XmlRpcValue const& operator[](int i) const { assertArray(i+1); return _value.asArray->at(i); }
XmlRpcValue const& operator[](int i) const
{ assertArray(i+1); return (*(_value.asArray))[i]; }
because there is an older STL which seem not to have the vector::at() method.
Um:
> Ok, I am not heeding the dire warning about using the latest version of g++
So, yeah, I know. Unfortunately, I have an RH 6.2 box with other stuff on it and can't upgrade easily.
So, if anyone knows a workaround for what is obviously a nested template problem, I'd be glad to hear it.
Andargor