Results 1 to 5 of 5
when i try to compile any source codes using
Code:
gcc sourcefile.cpp -o compiledfile
i always get this error
Code:
cpp: error trying to exec 'cc1plus': execvp: No such file ...
- 08-11-2007 #1
error using gcc
when i try to compile any source codes using
i always get this errorCode:gcc sourcefile.cpp -o compiledfile
what does it mean?Code:cpp: error trying to exec 'cc1plus': execvp: No such file or directory
- 08-12-2007 #2
- 08-12-2007 #3
Indeed. The problem here is that gcc defaults to the C language. You're trying to interpret a C++ program as a C one, which never ends well.
The 'g++' command is still gcc, but it uses C++ as the default language. Alternatively, you could use 'gcc -x c++'.DISTRO=Arch
Registered Linux User #388732
- 08-12-2007 #4
ok, so i used g++ to compile it, but when i try to run the compiled file, i get an other error... permission denied. but the permissions are 777, so why can't i run it?
- 08-13-2007 #5
Run the command:
and tell us the output.Code:ls -l compiledfile
DISTRO=Arch
Registered Linux User #388732


Reply With Quote