gcc compile C++ file - Linux

By Agnes
at 2011-02-18T16:46
at 2011-02-18T16:46
Table of Contents
小弟剛才寫了一個最簡單的 C++ 程式 try1.cpp
附上程式碼
#include <iostream>
using namespace std;
int main()
{
cout << "Hello Linux!" << endl;
system("pause");
return 0;
}
然後 gcc -c try1.cpp
出現
gcc: error running to exec 'cc1plus': execvp: No such file or directory
請問是發生什麼事情了 O.O"
--
附上程式碼
#include <iostream>
using namespace std;
int main()
{
cout << "Hello Linux!" << endl;
system("pause");
return 0;
}
然後 gcc -c try1.cpp
出現
gcc: error running to exec 'cc1plus': execvp: No such file or directory
請問是發生什麼事情了 O.O"
--
Tags:
Linux
All Comments

By Puput
at 2011-02-20T06:57
at 2011-02-20T06:57

By Anthony
at 2011-02-22T09:29
at 2011-02-22T09:29

By Olivia
at 2011-02-24T16:59
at 2011-02-24T16:59

By Elvira
at 2011-02-28T11:48
at 2011-02-28T11:48

By Hamiltion
at 2011-03-04T06:42
at 2011-03-04T06:42

By Zora
at 2011-03-05T14:43
at 2011-03-05T14:43

By Agnes
at 2011-03-06T22:15
at 2011-03-06T22:15

By Elizabeth
at 2011-03-10T08:58
at 2011-03-10T08:58

By Edward Lewis
at 2011-03-14T23:01
at 2011-03-14T23:01

By John
at 2011-03-15T00:08
at 2011-03-15T00:08

By Jack
at 2011-03-18T14:24
at 2011-03-18T14:24

By Sierra Rose
at 2011-03-21T22:07
at 2011-03-21T22:07

By Poppy
at 2011-03-26T03:13
at 2011-03-26T03:13

By Olivia
at 2011-03-29T11:13
at 2011-03-29T11:13
Related Posts
debian squeeze kde下音效正常但gnome下沒音效

By Franklin
at 2011-02-18T16:20
at 2011-02-18T16:20
mysql.sock 連線錯誤

By David
at 2011-02-18T16:10
at 2011-02-18T16:10
Linux 網路使用率、流量

By Liam
at 2011-02-18T15:57
at 2011-02-18T15:57
修改 apt-get source code WITHOUT vim

By Odelette
at 2011-02-18T14:08
at 2011-02-18T14:08
Debian要怎樣修改右捷鍵?

By Megan
at 2011-02-18T12:17
at 2011-02-18T12:17