This is my error after trying to compile the first example from curlpp:
1 2 3 4 5
[Pepijn@PepLaptop curl]$ g++ -o curl curl.cpp -L/usr/local/lib/libcurlpp.a -lcurlpp -I/usr/local/include/curlpp
/usr/bin/ld: /tmp/cc4Jtc6d.o: undefined reference to symbol 'curl_easy_setopt'
/usr/bin/ld: note: 'curl_easy_setopt' is defined in DSO /usr/lib64/libcurl.so.4 so try adding it to the linker command line
/usr/lib64/libcurl.so.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
What does this mean:
/usr/lib64/libcurl.so.4: could not read symbols: Invalid operation
I'd like to make clear that LD_LIBRARY_PATH isn't the best solution and that you should seek a more fitting one: http://xahlee.org/UnixResource_dir/_/ldpath.html