操作係統是Ubuntu 9.10,比如開一個終端,於是看到:
me@ubuntume:~$
我有一個文件 001.cpp,於是寫:g++ -o 001 001.cpp
然後,文件夾中多了一個文件001,可我再用
me@ubuntume:~$ 001 結果卻是:
001: command not found
怎麽辦呢?
怎麽運行 C++?
所有跟帖:
•
sudo apt-get install build-essential
-ohlalala-
♀
(0 bytes)
()
03/07/2010 postreply
08:38:13
•
沒有用
-alpha66-
♂
(0 bytes)
()
03/07/2010 postreply
08:43:02
•
多謝!
-alpha66-
♂
(0 bytes)
()
03/07/2010 postreply
09:33:13
•
回複:怎麽運行 C++?
-arening-
♂
(5 bytes)
()
03/07/2010 postreply
08:49:01
•
剛試過,這是正解。多謝!
-alpha66-
♂
(0 bytes)
()
03/07/2010 postreply
09:32:35