G ++ program not found in path

I am using Eclipse for project C. 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 get "program" g ++ "not found in path". How do I get rid of this? I don't even use C ++.

+5
source share
4 answers

I had a similar problem and it is being solved

  • Install g ++ The GNU C ++ Compiler using the ubuntu software center and

  • Change in

Window → Settings → C / C ++ → Build → Settings → Detection → CDT GCC Build in Complier Settings [General]

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

Hope this helps.

+10
source

. StackOverflow ; , , , , . ; , , .

: Eclipse . . , , ( , GUI); - Eclipse , .

Android, Eclipse "ADT" (Android Developer Tools). - , ( , gcc g++ ). ( , ) .

, gcc g++ . Android, , Eclipse ; Android. C/++ Build/Discovery gcc g++. , , , , , , C/++- Eclipse, .

, , ADT Google, , ( , ). gcc/g++.

+2

, Eclipse IDE C/++.

Eclipse Ubuntu Software Center, Eclipse CDT.

CDT, Eclipse → → → → ... CDT .

0

,

( Project Explorer ) → properties- >

Toolchain: Android GCC Current Buolder: Android Builder

0

All Articles