Hello, I'm using jsoncpp in a project of mine and I love it. It compiles and
runs fine with the windows compiler but in linux it is failing to compile in
what should be an easily fixable problem.
Output of gcc/g++: (Lines selected by me not occured in that order but they
are the same problem)
son_reader.cpp:(.text+0x6f4): undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_string()'
Release/json/json_reader.o: In function
`Json::Reader::getLocationLineAndColumn(char const*) const':
json_reader.cpp:(.text+0x995): undefined reference to
`std::allocator<char>::allocator()'
Release/json/json_reader.o: In function
`Json::Reader::decodeUnicodeEscapeSequence(Json::Reader::Token&, char
const*&, char const*, unsigned int&)':
json_reader.cpp:(.text+0xe15): undefined reference to
`std::allocator<char>::allocator()'
Searches in google lead me to add "-lstdc++" to the linking process but the
same happens and I confirm that a simple use of the Standard Library without
json compiles. I know that this is not a problem in json code but the fact
is that I can't resolve it.
|