看板 EE_DSnP 關於我們 聯絡資訊
Sorry I don't know how to install Chinese input method on this machine = = I failed to make the files of hw1.1.4a, and here's the error message: g++ -c main.cpp g++ -o main.o a.o b.o /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status make: *** [hw1.1.4a] Error 1 I saw someone ask the same question before on this board, but I'm sure that my disk is very empty. What happened ? Can anyone give me a hand ? Thanks a lot. -- http://www.wretch.cc/blog/ads901119 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.252.248
timrau:"g++ -o main.o a.o b.o" 03/18 11:46
timrau:等於是嘗試把a.o, b.o link成執行檔main.o 03/18 11:47
timrau:那當然找不到main()..... 03/18 11:47
sa901119:I got it, thank you so much~~ 03/18 11:50