[作業] compiler system("./c-- test1.s") 出問題
請問一下,有沒有人也有遇到類似的情況
就是我在code裡面寫
system("./c-- test1.s");
的時候,遇到下面的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: 123.192.225.48
→
06/12 00:04, , 1F
06/12 00:04, 1F
推
06/12 01:24, , 2F
06/12 01:24, 2F
推
06/12 02:30, , 3F
06/12 02:30, 3F
推
06/12 08:01, , 4F
06/12 08:01, 4F
→
06/12 08:02, , 5F
06/12 08:02, 5F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):