看板 Programming 關於我們 聯絡資訊
請問 在我依照課本練習上範例先寫一個.h檔,再寫一個同名.cpp檔 並在裡面#include " .h"後compile 都出現下列錯誤訊息: [Linker error] undefined reference to `WinMain@16' ld returned 1 exit status 請問這要怎麼修改呢?include進執行檔執行的話 則會出現類似下列錯誤訊息 [Linker error] undefined reference to `Time::Time()' 謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.7.59 ※ 編輯: LSOTIS 來自: 140.112.7.59 (12/31 21:57)
fungi8210:你有寫 main() 嗎? 220.236.142.69 01/01 01:39
LSOTIS:執行檔裡有。.h及其definition檔沒有 59.115.178.35 01/01 11:15