Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » how to set include path(my project does not contain a .pro file where to define the path)
how to set include path [message #986813] Wed, 21 November 2012 13:05 Go to next message
Nick Schweyer is currently offline Nick Schweyer
Messages: 151
Registered: July 2009
Senior Member
hi,

I have a C-project (not C++) in Eclipse-CDT.
In the beginning I had all header files and source files in the project directory.
Now I moved all header files into the include directory which had been generated automatically when generating the project.
I moved the files with the move command of Eclipse.

After this move the compiler cannot find the header files any more.

From former projects I knew that every project has a .pro file where the names and pathes of source and header files are defined. In this project there is no .pro file.

I tried to set the path without success in:
properties|C/C++General|Paths and Symbols|Includes
properties|C/C++General|Paths and Symbols|Source location

How else can I tell the compiler where he can find the header files?

(the problem occurs with Eclipse-CDT/MinGW on Windows)


Nick Schweyer

Eclipse Helios, Qt 4.3, Qt integration, open Suse Linux 11.3

[Updated on: Wed, 21 November 2012 13:25]

Report message to a moderator

Re: how to set include path [message #986827 is a reply to message #986813] Wed, 21 November 2012 14:42 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1298
Registered: July 2009
Senior Member
On 11/21/2012 12:05 PM, Nick Schweyer wrote:
> hi,
> I have a C-project (not C++) in Eclipse-CDT.
> In the beginning I had all header files and source files in the project
> directory.
> Now I moved all header files into the include directory which had been
> generated automatically when generating the project.
> I moved the files with the move command of Eclipse.
>
> After this move the compiler cannot find the header files any more.
>
> From former projects I knew that every project has a .pro file where
> the names and pathes of source and header files are defined. In this
> project there is no .pro file.
>
> I tried to set the path without success in:
> properties|C/C++General|Paths and Symbols|Includes
> properties|C/C++General|Paths and Symbols|Source location
>
> How else can I tell the compiler where he can find the header files?
A .pro file indicates a QT project. Are you using the QT Integration?
If so, then you may need to consult the Qt documentation/forums. Qt has
a pre-compile step that creates additional source files so configuring
the project to work with the Qt tools would be something specific to
their plugin.
Re: how to set include path [message #986929 is a reply to message #986813] Thu, 22 November 2012 06:55 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1927
Registered: July 2009
Senior Member
Nick Schweyer wrote on Wed, 21 November 2012 19:05
hi,

I have a C-project (not C++) in Eclipse-CDT.
In the beginning I had all header files and source files in the project directory.
Now I moved all header files into the include directory which had been generated automatically when generating the project.
I moved the files with the move command of Eclipse.

After this move the compiler cannot find the header files any more.

That is a virtual folder! It does not exist on the harddisk! It is a representation of the include files that Eclipse has found in your project or are added by the compiler (system headers). You should not move any files there.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Project Explorer Context Menu missing
Next Topic:Export referenced library from static library
Goto Forum:
  


Current Time: Thu Apr 17 03:45:13 EDT 2014

Powered by FUDForum. Page generated in 0.03142 seconds