I compiled xmlrpc++ on linux and there are some compile errors as following.
------------------------------------------------------------------------
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o src/XmlRpcClient.o src/XmlRpcClient.cpp
In file included from src/XmlRpc.h:32,
from src/XmlRpcClient.cpp:5:
src/XmlRpcValue.h: In method `const XmlRpc::XmlRpcValue
&XmlRpc::XmlRpcValue::operator[] (int) const':
src/XmlRpcValue.h:94: no matching function for call to
`vector<XmlRpc::XmlRpcValue, allocator<XmlRpc::XmlRpcValue> >::at (int
&)'
src/XmlRpcValue.h: In method `XmlRpc::XmlRpcValue
&XmlRpc::XmlRpcValue::operator[] (int)':
src/XmlRpcValue.h:95: no matching function for call to
`vector<XmlRpc::XmlRpcValue, allocator<XmlRpc::XmlRpcValue> >::at (int
&)'
make: *** [src/XmlRpcClient.o] Error 1
--------------------------------------------------------------------------
How can I resolve this problem?
I think it is because the vector class has no at() functions.
By the way, the <vector> file of VC has the at() function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your options are to either get a newer version of g++ (I use 3.1 and 3.2) or edit the source to use the array access operator [] rather than the at() method. If you don't update the compiler you will run into problems with the base64 implementation.
I compiled xmlrpc++ on linux and there are some compile errors as following.
------------------------------------------------------------------------
g++ -g -Wall -Wstrict-prototypes -O2 -I./src -c -o src/XmlRpcClient.o src/XmlRpcClient.cpp
In file included from src/XmlRpc.h:32,
from src/XmlRpcClient.cpp:5:
src/XmlRpcValue.h: In method `const XmlRpc::XmlRpcValue
&XmlRpc::XmlRpcValue::operator[] (int) const':
src/XmlRpcValue.h:94: no matching function for call to
`vector<XmlRpc::XmlRpcValue, allocator<XmlRpc::XmlRpcValue> >::at (int
&)'
src/XmlRpcValue.h: In method `XmlRpc::XmlRpcValue
&XmlRpc::XmlRpcValue::operator[] (int)':
src/XmlRpcValue.h:95: no matching function for call to
`vector<XmlRpc::XmlRpcValue, allocator<XmlRpc::XmlRpcValue> >::at (int
&)'
make: *** [src/XmlRpcClient.o] Error 1
--------------------------------------------------------------------------
How can I resolve this problem?
I think it is because the vector class has no at() functions.
By the way, the <vector> file of VC has the at() function.
Your options are to either get a newer version of g++ (I use 3.1 and 3.2) or edit the source to use the array access operator [] rather than the at() method. If you don't update the compiler you will run into problems with the base64 implementation.
See this thread for more info: http://sourceforge.net/forum/message.php?msg_id=1885705