Skip to main content


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 18:05 Go to next message
Nick Schweyer is currently offline Nick SchweyerFriend
Messages: 175
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)


Niko

Eclipse-CDT Version: 2019-12 (4.14.0), Win10 64bit

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

Report message to a moderator

Re: how to set include path [message #986827 is a reply to message #986813] Wed, 21 November 2012 19:42 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
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 11:55 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
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: Fri Apr 26 14:00:03 GMT 2024

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

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

Back to the top