Installing the correct version of a C/C++library
Often a library will have a seperate install for C or C++ and you need to install the correct one! Sounds obvious but with so many libraries having poor documentation this can be a simple thing that consfuses the hell out of you. Take for instance the libconfig library:
The C Version
Installing
sudo apt-get install libconfig-dev
Using
#include <libconfig.h> //This library needs the "-lconfig" adding to Project Properties > Build > Linker > Libraries
The C++ Version
Installing
sudo apt-get install libconfig++-dev //<<<<NOTICE THE DIFFERENT LIBRARY NAME!
Using
#include <libconfig.h++> //This library needs the "-lconfig++" adding to Project Properties > Build > Linker > Libraries
using namespace libconfig;
