[問題] 建.lib檔出現"Unable to start program"

看板C_and_CPP (C/C++)作者 (甜小蜜)時間9年前 (2016/10/04 22:52), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
請教各位大大,我在建.lib檔案時,出現以下error: Unable to start program'C:\....\xx.lib'. The specified file is an unrecognized or unsupported binary format. 我看這個error是依據"project->properties->configuration properties->Debugging" 其中的command內容來的,建出的.lib路徑與command欄中的路徑相同。 不清楚這一欄應該要給予什麼才能解決這問題?或還受到別的問題影響 ? 另外,查網路提到的一些設定例如"project properties->configuration properties-> general 的Use of MFC選"use MFC in a static library","Configuration Type"選" Static Library",這些皆已選擇如網路上所說。 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.169.246.141 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1475592720.A.05A.html

10/05 12:40, , 1F
我猜你是直接執行project的.lib檔,debug必須執行.exe才對
10/05 12:40, 1F

10/05 12:42, , 2F
你的專案是否有一個呼叫端(.exe)
10/05 12:42, 2F

10/06 18:58, , 3F
請問方便用站內信請教您嗎
10/06 18:58, 3F
文章代碼(AID): #1Nyy8G1Q (C_and_CPP)
文章代碼(AID): #1Nyy8G1Q (C_and_CPP)