Eclipse 3 / CDT 2 - Include file paths [message #111986] |
Wed, 21 July 2004 07:53  |
Eclipse User |
|
|
|
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 #112176 is a reply to message #112150] |
Thu, 22 July 2004 10:35  |
Eclipse User |
|
|
|
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".
|
|
|
Powered by
FUDForum. Page generated in 0.05158 seconds