Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With Eclipse: How to add include paths and libraries for all your C/C++ project

Tags:

Is it possible to add include paths and libraries to all C/C++ projects? In others words: How can I make them global or copy one C/C++ project build setting to another one?

like image 991
Walidix Avatar asked Apr 24 '10 20:04

Walidix


People also ask

Could not find include file in include paths eclipse?

Simply right click on the file > go to Resource Configurations > Reset to Default... Your header files will be found now, provided that you've written the correct include paths in your project settings.

HOW include header file in C Eclipse?

Select C/C++ General -> Path and Symbols. Select Includes tab. In Languages list, select 'GNU C' or whatever C compiler tool chain you use. Press 'Add...' button and add the directory for the include files.

How can I use C language in eclipse?

Launch Eclipse → Help → Install New Software → In "Work with" field, pull down the drop-down menu and select "Kepler - http://download.eclipse.org/releases/kepler" (or juno for Eclipse 4.2; or helios for Eclipse 3.7). In "Name" box, expand "Programming Language" node ⇒ Check "C/C++ Development Tools" ⇒ "Next" ⇒ ...


1 Answers

For Eclipse Indigo: There is no possibility to define globally include paths and libraries. But you can export and import them from one project to another.

Go to Project > Properties > C/C++ General > Paths and Symbols Then click Export Settings... to save the include paths and/or symbol definitions to a file. In your other project, you can then use Import Settings...

like image 145
parvus Avatar answered Oct 04 '22 19:10

parvus