I've successfully(?) installed the QJson library following the instructions in the archive. But the compiler gives me this error:
Undefined reference to QJSon::Parser::Parser().
I've found where library files have been installed: it's /usr/local/include/json
directory. But there are only *.h
files in it.
The minimal code:
main.cpp
#include <QtGui/QApplication>
#include <qjson/parser.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QJson::Parser parser;
return a.exec();
}
I use linux.
Where are *.cpp
files? What did I do wrong? Why isn't the library complete?