سؤال

How can I link jsoncpp with a C++ program using g++? I tried:

g++ -o program program.cpp -L/path/to/library/files -ljsoncpp, -ljson, -llibjsoncpp

but g++ keeps saying:

/usr/bin/ld: cannot find -lsomething

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top