program g++ not found in path

前端 未结 5 2044
离开以前
离开以前 2020-12-11 06:41

I am using Eclipse for a C project. I created a new Project by going to New->C project->Executable->Empty Project, Linux gcc toolchain.

When I add a new .c file, I g

5条回答
  •  庸人自扰
    2020-12-11 07:18

    I had similar problem and it is solved by

    1. Installing g++ The GNU C++ complier using ubuntu software centre and

    2. Changing in -

    Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build in Complier Settings [Shared]

    From: ${COMMAND} -E -P -v -dD "${INPUTS}"
    To  : /usr/bin/${COMMAND} -E -P -v -dD "${INPUTS}"
    

    I hope it helps.

提交回复
热议问题