Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to include path in Standard project
How to include path in Standard project [message #156787] Wed, 26 October 2005 13:34 Go to next message
Eclipse UserFriend
Originally posted by: david.cabaton.laposte.net

Hi all,

I'm using Eclipse 3.1.1 with CDT 3 and I want to import a project with the
"Standard Make C++ Project" and write my Makefile.

This project has a "Headers" repertory for *.h

I add this path into the properties project "C/C++ Include Paths &
Symbols", I can see it after in the Includes tree.

but in fact I can't compile it because the project can't find headers.

I tried it with a managed project and it work well but I want to write my
Makefile so I must use a Standard project.

Thanks,
David
Re: How to include path in Standard project [message #156804 is a reply to message #156787] Wed, 26 October 2005 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david.cabaton.laposte.net

Ok, I found an explication :

-------------
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".
-------------


so I must write the path directly in the Makefile with -I option.


There is an other solution ?

Thanks,
David
Re: How to include path in Standard project [message #157095 is a reply to message #156804] Mon, 31 October 2005 17:21 Go to previous message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
David schrieb:
> Ok, I found an explication :
>
> -------------
> 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".
> -------------
>
>
> so I must write the path directly in the Makefile with -I option.
>
>
> There is an other solution ?

What kind of other solution do you expect?
When you are writing your Makefile, then CDT does know nothing about
your project.

It only does it when using "Managed Make Project"s.

>
> Thanks,
> David
>
Previous Topic:Eclipse freezing when opening folder
Next Topic:GNU Managed Builds
Goto Forum:
  


Current Time: Mon Nov 11 10:33:53 GMT 2024

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

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

Back to the top