I'm getting a ton of these undefined reference to errors in my code.
The errors are only coming in the functions where I am using Json. The only two functions throwing these errors are my MovieLibrary::toJsonFile(string jsonFileName) function and my MovieLibrary::MovieLibrary(string jsonFileName) function.
At the top of all of my .cpp and .h files and even the main.cpp file I have:
#include jsoncpp/json/json.h (surrounded by < >)
I'm just confused as to why I'm getting these errors. I even did:
sudo apt-get install libjsoncpp-dev and all of the installs I was supposed to for the setup.
I even went as far as to trying to add to the build.xml file because I am using Ant. I tried to add libset dir="/usr/lib" libs="libjsoncpp"/ in the "build.cpp" target. That gets rid of all of those errors but then gives me the error of:
/usr/bin/ ld: cannot find - llibjsoncpp
collect2: error: ld returned 1 exit status
So I then went back to my original build.xml file and went back to the other undefined reference errors.
Here are the errors for the undefined references stuff: undefined references errors