how to set include path [message #986813] |
Wed, 21 November 2012 18: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.
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 #986929 is a reply to message #986813] |
Thu, 22 November 2012 11:55 |
Axel Mueller Messages: 1973 Registered: July 2009 |
Senior Member |
|
|
Nick Schweyer wrote on Wed, 21 November 2012 19:05hi,
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
|
|
|
Powered by
FUDForum. Page generated in 0.03219 seconds