當我運行下面的代碼,它給我的錯誤信息是:問題王氏使文件代碼
CC1:警告:main.c中:文件:不是目錄 frequent.o [默認啓用]不承認:文件格式無法識別 collect2:錯誤:LD返回1個退出狀態 化妝:* [主]錯誤1
CC = gcc
CPPFLAGS = -I
main: main.c headers.h sortt.o frequent.o
#$(CC) $(CPPFLAGS) -c $^ -o [email protected]
sortt.o: headers.h sortt.c
$(CC) $(CPPFLAGS) -c $< -o [email protected]
frequent.o: headers.h frequent_word.c search_similar_word.o
$(CC) $(CPPFLAGS) -c $< -o [email protected]
非常感謝,這是我第一次處理make文件,但是對於search_similar_word.o是freq中使用的一個函數,但是這些規則是我的make文件代碼的一個子... 我會跟着你guid line,我會看到,如果有錯誤會怎麼樣 –