看板 b93902HW 關於我們 聯絡資訊
※ 引述《gomibako (gomibako)》之銘言: : 請問一下,有沒有人也有遇到類似的情況 : 就是我在code裡面寫 : system("./c-- test1.s"); 請問這行如果要改成取指令變數的話要怎麼改 例如./pascal- -S test1.s -o test1 test1.p > err1 ./pascal- -S test2.s -o test2 test2.p > err2 都能隨之而變去./c-- 不同的檔案 謝謝 : 的時候,遇到下面的message : /usr/lib/gcc/x86_64-linux-gnu/4.1.3/../../../../lib/crt1.o: In function : `_start': : (.text+0x20): undefined reference to `main' : collect2: ld returned 1 exit status : 但是如果我在command line下打 ./c-- test1.s 就很正常 : 請問是哪裡出問題了呢? : 我是在linux3上用的 : 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.174.92
sophialiege:buffer; sprintf; system 06/13 00:40
finalwave:THX 06/13 11:17