gcc compile C++ file - Linux

By Ingrid
at 2011-02-20T00:13
at 2011-02-20T00:13
Table of Contents
※ 引述《nmns0110 (君詠)》之銘言:
: 小弟剛才寫了一個最簡單的 C++ 程式 try1.cpp
: 附上程式碼
: #include <iostream>
: using namespace std;
: int main()
: {
: cout << "Hello Linux!" << endl;
: system("pause");
~~~~~~~~~~~~~~~~ 這個要加上 #include <cstdlib>
不過貌似linux下不需要pause﹐一般windows下才需要暫停。
: 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 Agnes
at 2011-02-21T10:04
at 2011-02-21T10:04

By Edith
at 2011-02-25T04:22
at 2011-02-25T04:22
Related Posts
新安裝系統 抓不到usb隨身碟 centos 5.4

By Robert
at 2011-02-19T19:02
at 2011-02-19T19:02
ssh啟動失敗.Couldn't open /dev/null: …

By Michael
at 2011-02-19T18:34
at 2011-02-19T18:34
新手求救 apt-get install openssh-server 失敗

By Annie
at 2011-02-19T17:45
at 2011-02-19T17:45
在 live cd 使用聊天程式連 msn

By Isabella
at 2011-02-19T14:36
at 2011-02-19T14:36
大家平常用的shell?

By Genevieve
at 2011-02-19T10:51
at 2011-02-19T10:51