Re: [問題] gcc 編譯.o 不能執 command not found
※ 引述《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
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.204.66.152
推
04/05 19:50, , 1F
04/05 19:50, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):