Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse 3 / CDT 2 - Include file paths
Eclipse 3 / CDT 2 - Include file paths [message #111986] Wed, 21 July 2004 07:53 Go to next message
Eclipse UserFriend
Originally posted by: eclipsenews_20040720.nigel-eke.com

I've just downloaded Eclipse 3.0 and CDT 2.0.

When I create a project and go to project properties I was expecting to
see C/C++ Include File Paths - according to the help, but I see the
following:

Info
Builders
C/C++ Build
C/C++ File Types
C/C++ Indexer
Error/Binary Parsers
Project References


No C/C++ Include File Paths.

Has anyone seen this before, or have any idea how I set the include file
paths.

I'd rather do this for the workspace as a whole, i.e. under Windows
Preferences, but can't find anything there either.

Sorry for the newbie questions (well newbie to Eclipse 3.0 anyhow). I'm
sure this would have been answered before, but I haven't been able to
track anything down.

Thanks again,

Nigel
Re: Eclipse 3 / CDT 2 - Include file paths [message #112001 is a reply to message #111986] Wed, 21 July 2004 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: oliver.mueller.bmw-carit.de

Nigel Eke wrote:

>
> Has anyone seen this before, or have any idea how I set the include file
> paths.
>
go to the properties of your C-project -> C/C++ Build -> change the
Directories in your Compiler-Settings in "Configuration Settings"
Re: Eclipse 3 / CDT 2 - Include file paths [message #112023 is a reply to message #111986] Wed, 21 July 2004 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Nigel Eke wrote:

> I've just downloaded Eclipse 3.0 and CDT 2.0.
>
> When I create a project and go to project properties I was expecting to
> see C/C++ Include File Paths - according to the help, but I see the
> following:
>
> Info
> Builders
> C/C++ Build
> C/C++ File Types
> C/C++ Indexer
> Error/Binary Parsers
> Project References
>
>
> No C/C++ Include File Paths.

This option is for Standard Make Projects, not Managed Make Projects.
It is useful to setup the include search paths for the indexer and helps
it to find your headers. In Managed Make Projects, this is done
automatically according to the Toolchain you selected. Additional paths
for user supplied headers are added in the C/C++ build page under "GCC C
Compiler"->"Directories".

> Has anyone seen this before, or have any idea how I set the include file
> paths.
>
> I'd rather do this for the workspace as a whole, i.e. under Windows
> Preferences, but can't find anything there either.
>
> Sorry for the newbie questions (well newbie to Eclipse 3.0 anyhow). I'm
> sure this would have been answered before, but I haven't been able to
> track anything down.
>
> Thanks again,
>
> Nigel
Re: Eclipse 3 / CDT 2 - Include file paths [message #112043 is a reply to message #112023] Wed, 21 July 2004 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews_20040720.nigel-eke.com

kesselhaus wrote:
> Nigel Eke wrote:
>
>> No C/C++ Include File Paths.
>
> This option is for Standard Make Projects, not Managed Make Projects.
> It is useful to setup the include search paths for the indexer and helps
> it to find your headers. In Managed Make Projects, this is done
> automatically according to the Toolchain you selected. Additional paths
> for user supplied headers are added in the C/C++ build page under "GCC C
> Compiler"->"Directories".
>

Great - thanx guys for your quick and helpful responses...

Nigel
Re: Eclipse 3 / CDT 2 - Include file paths [message #112150 is a reply to message #112023] Thu, 22 July 2004 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: n0mer.ussr.ntu-kpi.kiev.ua

kesselhaus wrote:

> Nigel Eke wrote:

> > I've just downloaded Eclipse 3.0 and CDT 2.0.

> > When I create a project and go to project properties I was expecting to
> > see C/C++ Include File Paths - according to the help, but I see the
> > following:

> > Info
> > Builders
> > C/C++ Build
> > C/C++ File Types
> > C/C++ Indexer
> > Error/Binary Parsers
> > Project References

> > No C/C++ Include File Paths.

The same situation (Eclipse 3.0, CDT 2.0, newbee too :));
"Standart Make C++ Project".

Project->Properties contains

Info
Builders
C/C++ File Types
C/C++ Include Paths & Symbols
C/C++ Indexer
C/C++ Make Project
C/C++ Project Paths
CVS
Project References

[...cut...]
> Additional paths
> for user supplied headers are added in the C/C++ build page under "GCC C
> Compiler"->"Directories".

I have no idea where is it :)

For now i'm using makefile to define where are my includes are.
F.ex.:

#compiler flags
CFLAGS = -Wall -g \
-I/GTK2/include/gtk-2.0 \
-I/GTK2/include/glib-2.0 \
-I/GTK2/lib/glib-2.0/include \
-I/GTK2/include/pango-1.0 \
-I/GTK2/lib/gtk-2.0/include \
-I/GTK2/include/atk-1.0 \
-mms-bitfields #to avoid "Gtk-ERROR **: Incompatible build!"
Re: Eclipse 3 / CDT 2 - Include file paths [message #112176 is a reply to message #112150] Thu, 22 July 2004 10:35 Go to previous message
Eclipse UserFriend
n0mer wrote:
> kesselhaus wrote:
>
>
>>Nigel Eke wrote:
>
>
>>>I've just downloaded Eclipse 3.0 and CDT 2.0.
>
>
>>>When I create a project and go to project properties I was expecting to
>>>see C/C++ Include File Paths - according to the help, but I see the
>>>following:
>
>
>>>Info
>>>Builders
>>>C/C++ Build
>>>C/C++ File Types
>>>C/C++ Indexer
>>>Error/Binary Parsers
>>>Project References
>
>
>>>No C/C++ Include File Paths.
>
>
> The same situation (Eclipse 3.0, CDT 2.0, newbee too :));
> "Standart Make C++ Project".
>
> Project->Properties contains
>
> Info
> Builders
> C/C++ File Types
> C/C++ Include Paths & Symbols
> C/C++ Indexer
> C/C++ Make Project
> C/C++ Project Paths
> CVS
> Project References
>
> [...cut...]
>
>>Additional paths
>>for user supplied headers are added in the C/C++ build page under "GCC C
>>Compiler"->"Directories".
>
>
> I have no idea where is it :)
>
> For now i'm using makefile to define where are my includes are.
> F.ex.:
>
> #compiler flags
> CFLAGS = -Wall -g \
> -I/GTK2/include/gtk-2.0 \
> -I/GTK2/include/glib-2.0 \
> -I/GTK2/lib/glib-2.0/include \
> -I/GTK2/include/pango-1.0 \
> -I/GTK2/lib/gtk-2.0/include \
> -I/GTK2/include/atk-1.0 \
> -mms-bitfields #to avoid "Gtk-ERROR **: Incompatible build!"
>

You have to write your Makefile in a "Standard Make Project" yourself
anyway! The "C/C++ Include Paths & Symbols" etc. are just for helping
the CDT Indexer to find include files, though the Indexer can find
symbols for features like the Content Assist.
They Paths and Symbols in the project properties in a "Standard Make
Project" are _not_ populated into the Makefile! This only happens in a
"Managed Make Project".
Previous Topic:Task Tags support
Next Topic:managed make
Goto Forum:
  


Current Time: Thu Apr 24 03:05:37 EDT 2025

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

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

Back to the top