I'm trying to add xml-rpc to an existing application using http://xmlrpc-c.sourceforge.net/ .I used the following code for testing.
xmlrpc_c::clientSimple myClient;
xmlrpc_c::value result;
myClient.call(serverUrl, methodName, "ii", &result, 5, 7);
int const sum((xmlrpc_c::value_int(result)));
The code compiles correctly, but causes the program to throw an error. If I initialize them as pointers, the problem goes away.
xmlrpc_c::clientSimple* myClient;
xmlrpc_c::value* result;
I do not know how to handle the rest of the code. To make it work with the pointers.