我是用freebsd 4.10版本
寫了一個簡單的程式 hello.c
#include<stdio.h>
int main(void)
{ printf("hello");
return 0;
}
用gcc hello.c -o hello
compiler完畢沒有出現任何error 也成功產生執行檔
但是在命令列打hello 就是沒辦法 顯現hello字眼
甚至有時候還會出現command not found
想請問一下我哪裡出錯呢~返請大大告之^^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.169.90
※ 編輯: supermai 來自: 140.117.169.90 (09/17 23:22)