I have installed the libbmp library from this link https://code.google.com/p/libbmp/ and I have made all the required steps to complete with the installation. When I try to use it, by including the bmpfile.h like the example on the download page:
#include <bmpfile.h>
I get this error:
fatal error: bmpfile.h: No such file or directory
Does anyone know what I am doing wrong?
Presumably it was installed to /usr/local/include
and your compiler doesn't look in that location. To fix this, you should set your CPATH
variable to point there:
CPATH=/usr/local/include
export CPATH
This is typically done in your .bashrc
or similar, or in your IDE if you're using one.
For more info check your compiler manual.