Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT include management
CDT include management [message #233235] Fri, 24 April 2009 07:12 Go to next message
Ska is currently offline SkaFriend
Messages: 4
Registered: July 2009
Junior Member
Hi all

I'm new to the use of CDT: I'm working with Eclipse's Windows version
3.4.2 (Ganymede) with mingw.
3 questions:
1) Where can I set the include folders to be used in the build phase?
I tried to set them in "Properties->C/C++ Include Paths and Symbols" but I
got no effect at all during the compilation!! I'm looking for files in the
Workspace, inside another project folder.
2) On a .h file, on the left of my code, I see a yellow square with a
question mark inside. The tip says "Unresolved include baseform.h" but
basefor.h is a file of the project! I found someone suggested to use a
"Full Indexer" but I do not even find it...
3) How can I remove a folder/file from a project? I was able once to open
a tab with the information about my project but I do not find it again!!

Thank a lot in advance for any suggestion

Ciao,
Ska
Re: CDT include management [message #233244 is a reply to message #233235] Fri, 24 April 2009 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Ska wrote:
> Hi all
>
> I'm new to the use of CDT: I'm working with Eclipse's Windows version
> 3.4.2 (Ganymede) with mingw. 3 questions:
> 1) Where can I set the include folders to be used in the build phase?
> I tried to set them in "Properties->C/C++ Include Paths and Symbols" but
> I got no effect at all during the compilation!! I'm looking for files in
> the Workspace, inside another project folder. 2) On a .h file, on the
> left of my code, I see a yellow square with a question mark inside. The
> tip says "Unresolved include baseform.h" but basefor.h is a file of the
> project! I found someone suggested to use a "Full Indexer" but I do not
> even find it...
> 3) How can I remove a folder/file from a project? I was able once to
> open a tab with the information about my project but I do not find it
> again!!
>
> Thank a lot in advance for any suggestion
>
> Ciao,
> Ska
>
You have to add each directory you want 'included'.

Select the project and File->Properties
Expend C/C++ Build and select Settings
Under Tools Settings, choose Compiler/Directories
You can add all your include requirements in here.

Tips: you can add . relative paths for project relative directories

--
Derek
Re: CDT include management [message #233277 is a reply to message #233244] Fri, 24 April 2009 15:44 Go to previous messageGo to next message
Ska is currently offline SkaFriend
Messages: 4
Registered: July 2009
Junior Member
Hi Derek

Thanks for your answer.

Unfortunately I do not have the menu you addressed me.
If I "Select the project and File->Properties" the available options are:
- Resource
- Builders
- C/C++ General
- C/C++ Include Paths and Symbols
- C/C++ Make Project
- C/C++ Poject Paths

etc.

Do someone know why I have different menus???
Do someone know where I can set the include paths?

Ciao,
Ska
Re: CDT include management [message #233440 is a reply to message #233277] Wed, 29 April 2009 17:13 Go to previous messageGo to next message
Anna Zacchi is currently offline Anna ZacchiFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,
I also I'm trying to fix problems with the paths.
I think the difference depends on different eclipse versions.
I find the includes in

C/C++ General / Path and Symbols

Anna



Ska wrote:

> Hi Derek

> Thanks for your answer.

> Unfortunately I do not have the menu you addressed me.
> If I "Select the project and File->Properties" the available options are:
> - Resource
> - Builders
> - C/C++ General
> - C/C++ Include Paths and Symbols
> - C/C++ Make Project
> - C/C++ Poject Paths

> etc.

> Do someone know why I have different menus???
> Do someone know where I can set the include paths?

> Ciao,
> Ska
Re: CDT include management [message #233487 is a reply to message #233440] Wed, 29 April 2009 21:58 Go to previous messageGo to next message
David Hart is currently offline David HartFriend
Messages: 4
Registered: July 2009
Junior Member
Check my recent post: "pkg-config - solved"

Though written specifically for C and GTK+, it shows a generic method for
handling include files and libraries. I think this is what you are
looking for?

Dave...
Re: CDT include management [message #234124 is a reply to message #233487] Tue, 19 May 2009 14:50 Go to previous messageGo to next message
Harald  r is currently offline Harald rFriend
Messages: 1
Registered: July 2009
Junior Member
Dave, I am new on using CDT, and I have problems with unresolved include
files.
I have source code tree where include files are found in the different
sub-modules.
You have soltution, where can I find it?

Harald
Re: CDT include management [message #234140 is a reply to message #233277] Tue, 19 May 2009 18:41 Go to previous message
YANCULOVICI is currently offline YANCULOVICIFriend
Messages: 18
Registered: July 2009
Junior Member
Ska wrote:

> Hi Derek

> Thanks for your answer.

> Unfortunately I do not have the menu you addressed me.
> If I "Select the project and File->Properties" the available options are:
> - Resource
> - Builders
> - C/C++ General
> - C/C++ Include Paths and Symbols
> - C/C++ Make Project
> - C/C++ Poject Paths

> etc.

> Do someone know why I have different menus???
> Do someone know where I can set the include paths?

> Ciao,
> Ska

First make sure you have the last Eclipse and CDT version:
-> Help > About Eclipse Platform
-> Version should be 3.4.2
-> Feature Details > "Eclipse C/C++ Development Tool" should be 5.0.2

To get a get a working IDE for C/C++ development go to the following page:
http://www.eclipse.org/downloads/ and get the "Eclipse IDE for C/C++
Developers"

Then you should have the same menus...

To set the include paths:
-> Right click on the project name > Properties > C/C++ Build > Settings
-> in the Tool Settings tab, select the "Directories" entry of the target
compiler (C or C++ Compiler)
-> Add the paths to the directories containing your header files


Dimitri.
Previous Topic:Imported files are copied
Next Topic:Creating virtual directory.
Goto Forum:
  


Current Time: Wed Apr 24 20:41:02 GMT 2024

Powered by FUDForum. Page generated in 0.04005 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top