2016년 2월 17일 수요일

[solved] gcc: error trying to exec 'cc1plus': execvp: No such file or directory

gcc: error trying to exec 'cc1plus': execvp: No such file or directory


I got this error message when I was type 'gcc [input.cpp] -o [output.out]'

It's not correct syntax because 'gcc' is compiler for 'C' language.

'g++' is compiler for 'C++' language.

so, I did these steps.

1. sudo apt-get install g++

2. g++ [input.cpp] -o [output.out]

3. It's working!!

댓글 없음:

댓글 쓰기