Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include External headers in Eclipse for C

I have some external header files in a separate directory (its the sqlite3.h). I want to be able to use them in my Eclipse CDT project. How would I include the directory to Eclipse?

like image 225
Mohit Deshpande Avatar asked Apr 19 '10 01:04

Mohit Deshpande


1 Answers

Go to Project > Properties > C/C++ General > Paths and Symbols > Includes. Click Add, then File System and navigate to where the header files are stored.

(I usually select "Add to all configurations" and "Add to all languages" because it's easier to do it now than come back and change them later.)

like image 181
Niall C. Avatar answered Nov 05 '22 03:11

Niall C.