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

Table of Contents

※ 引述《bjk (Up2u)》之銘言:
: ===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

編譯出來的a.out是在目前的工作目錄底下

所以執行的時候要輸入./a.out

--

All Comments

Oliver avatarOliver2011-04-08
謝謝您!