You need to specify a dynamic linker where to look for libraries. Assuming this is some kind of UNIX / Linux system, this can be done either by setting the environment variable LD_LIBRARY_PATH before executing the program:
export LD_LIBRARY_PATH=/path/to/lib ./run-my-program
or by setting the linker path at compile time:
gcc -L/path/to/lib -Wl,-rpath,/path/to/lib -lxmlrpc_client++ ... ./run-my-program
Both approaches have problems. Google for "why LD_LIBRARY_PATH is bad." The command line options for setting the runtime linker path vary from one compiler to another.
Scott Duckworth
source share