編譯時出現如下錯誤:1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 無法解析的外部符號 _main,該符號在函數 ___tmainCRTStartup 中被引用

編譯時出現如下錯誤: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 無法解析的外部符號 _main,該符號在函數 ___tmainCRTStartup 中被引用   右擊項目,打開「屬性」頁   更改上圖紅色框內容爲/subsystem:windows。如果是剛開始默認的是/subsystem:windows 則改爲/subsytem:console 搞定!
相關文章
相關標籤/搜索