Reputation: 433
Within Eclipse I'm using the #include <sql.h>
library. When I build my project I'm getting the error of No such file or directory
. When I want to open the declaration of sql.h
it opens the header file, assuming Eclipse knows where to look for the header file.
I'm using Eclipse CDT and MinGW, assuming this is installed correctly..
Upvotes: 1
Views: 60
Reputation: 3339
Eclipse knows about sql.h
independently of your toolchain.
You must tell your compiler (MinGW) where the sql.h
header is, and your linker where the .lib
/.a
library binary is.
Properties>>C/C++ Build>>Settings>>GCC C++ Compiler >> Includes
you put the path to the .h
Properties>>C/C++ Build>>Settings>>GCC C++ Linker >> Libraries
you put the path to the .lib
/.a
Upvotes: 1