Replies: 1 comment
-
Try adding the --verbose flag to g++ to see what's in the g++ LIBRARY_PATH list. All this nonsense is handled by pkg-config, which is a tool that cooks up the right include and link command options for you. https://people.freedesktop.org/~dbn/pkg-config-guide.html jsoncpp does provide a pkg-config/jsoncpp.pc in its installation for this purpose. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I have been trying to figure out how to solve a linker error but I have had no luck. I read in the examples folder that I could perform this command:
g++ stringWrite.cpp -ljsoncpp -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -o stringWrite
but I receive this error:
ld: library not found for -ljsoncpp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If anyone could help, I would greatly appreciate it!
Beta Was this translation helpful? Give feedback.
All reactions