Paths and Symbols -> Inclu...">

Eclipse CDT - "Program" -E "not found in PATH

It makes me nutts. I recently updated my C project:

C / C ++ General -> Paths and Symbols -> Includes -> GNU C-> Include Directories .

Now I get the following error:

Program "-E" not found in PATH Location: Project Properties, C++ Preprocessor \ Include.../Providers, [CDT Cross GCC Built-in \ Compiler Settings] options 

Finishing creating a new workspace and starting out, what does it mean, and how do I fix my current project?

Note

Closing Eclipse, checking the project from Source-Control Fresh and restarting still shows the problem !!! How can it be.

-Justin

+6
source share
3 answers

I had a silent similar problem, in my case, changing the toolchain from Linux GCC to Cross GCC in the project properties (C / C ++ Build β†’ Tool Chain Editor β†’ Current toolchain) resolved the problem

+2
source

In the project settings, go to "C / C ++ Toolchain Editor">. The selected tool chain was empty in my case. So I selected the chain of tools that I use (which seems to be "Cross GCC" in your case). This will set the variable $ {COMMAND} (and $ {FLAGS} and $ {INPUTS}), which does not seem to be set in your case. If you, for example, close the project and open it again, the error should disappear.

The second option that I see is that the command with which Eclipse determines the default definitions and includes the paths of your compiler / tool chain is screwed up when you "set up your project". You should be able to fix this as follows: open the project settings and go to "C / C ++ General> Preprocessor Include Paths, Macros, etc.", select the "Providers" tab, select the active "Built-in CDT * compiler settings" from list and make sure the Get Compiler Specifications command starts with $ COMMAND -E instead of -E. In my case, the full line is $ {COMMAND} $ {FLAGS} -E -P -v -dD "$ {INPUTS}" '. If you no longer want to see the result when Eclipse runs this command, you can uncheck the "Distribute console in console view" box.

+2
source

Do you use the GCC compiler for ARM? In this case, you must install the ARM Eclipse plugins from http://gnuarmeclipse.livius.net/blog/

0
source

All Articles