Pim
Pim

Reputation: 433

can open header file, still file not found

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

Answers (1)

Ivan Rubinson
Ivan Rubinson

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.

  • in Properties>>C/C++ Build>>Settings>>GCC C++ Compiler >> Includes you put the path to the .h
  • in Properties>>C/C++ Build>>Settings>>GCC C++ Linker >> Libraries you put the path to the .lib/.a

Upvotes: 1

Related Questions