I am trying to connect c++ with SQLBase. After building my project I get an error as " Cannot open include file: 'SQLAPI.h': No such file or directory ".
#include <stdio.h>
#include <SQLAPI.h> // main SQLAPI++ header
#include <sbAPI.h>
Can someone please tell me why am I getting this error and how to fix it?
The file "SQLAPI.h" is not in the include path. You need to add the path to the header files to the compilation flags.
If you are using GCC then add a flag
-I
like this:See http://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html for the
-I
option.If using a Makefile, change
CFLAGS
orCXXFLAGS
to add the-I
option.If using Visual Studio, go into the project properties dialog, select "Configuration Properties" and "VC++ Directories", and modify the "Include Directories" property. (Based on Visual C++ 2010 Express, should be similar in older versions.)