gcc 編譯.o 不能執 command not found - Linux

Bennie avatar
By Bennie
at 2011-04-05T10:51

Table of Contents


===hello.c ===
#include<stdio.h>
#include<stdlib.h>
int main(){
prinf("Hello");
return 0;
===hello.c end===

$g++ hello.c
$a.out

出現這個

command not found


--
雲長曰 :“曹操望見煙,知有埋伏,如何肯來?”

孔明笑曰:“豈不聞兵法虛虛實實之論?操雖能用兵,只此可以瞞過他也。
他見煙起,將謂虛張聲勢,必然投這條路來。將軍休得容情。”

--
Tags: Linux

All Comments

Valerie avatar
By Valerie
at 2011-04-09T09:43
./a.out
Connor avatar
By Connor
at 2011-04-11T20:39
太感謝您了~

VM老問題,麻煩版友指導一下

Selena avatar
By Selena
at 2011-04-04T23:32
不好意思,在Linux界算是新手,想踏進這個領域做研究,有錯或不清楚的地方請指教. 目前小弟在電腦上只有一張網卡,本機電腦是WinXP,目前想在XP上裝VM, VM裡的OS使用CentOS,但目前想要做到的功能是XP出Internet是依靠VM中的CentOS出去. 另外Linux有dhcp功能,我希望能 ...

VM安裝Fedora12遇到i386無法安裝

Todd Johnson avatar
By Todd Johnson
at 2011-04-04T19:08
先見圖~ http://ppt.cc/bE4h 我執行到這個步驟時就出現這個錯誤, 是因為有打勾紅色框框的選項, 有試過沒打勾安裝過去, 而出現沒有終端機可以執行, http://ppt.cc/5sGR 也要另外安裝re-pppoe套件才可進行dsl連線, 我在想是因為沒安裝到i386那套件才 ...

vim 亂碼

Liam avatar
By Liam
at 2011-04-04T18:24
※ 引述《yshihyu (yshihyu)》之銘言: : 我有個.c 檔案註解是簡體 : 但是我在vimrc 設定 : set fileencodings=utf-8,big5,gbk,euc-jp,euc-kr,utf-bom,iso8859-1,cp936 : set encoding=utf8 : s ...

.noarch.rpm 是什麼?

Robert avatar
By Robert
at 2011-04-04T11:27
請問一下 很多RPM檔 都是 .noarch.rpm 那個 noarch 是什麼意思呢? -- ┌─────────────────────────────────────┐ │╭╮ ...

詢問一個簡單的問題..xen-dom0、xen-vm1

Kelly avatar
By Kelly
at 2011-04-04T11:05
※ 引述《bernachom (Terry)》之銘言: : 不好意思,詢問一下,我對linux不是很熟... : 會問這個東西,是因為在paper上看到,他的數據有兩個 : 一個是xen-dom0,一個是xen-vm1 : 我查過dom0,這好像是xen裡的host? : 管理員會登入到dom0間接管理其它的 ...