msvcprt lib 衝突的問題

2021-05-05 17:49:11 字數 965 閱讀 4349

.exe呼叫lib編譯出錯:

3>hm2p5datastructure.lib(datastructurein.obj) : msil .netmodule or module compiled with /gl found; restarting link with /ltcg; add /ltcg to the link command line to improve linker performance

3>link : warning lnk4075: ignoring '/incremental' due to '/ltcg' specification

3>msvcprt.lib(msvcp80.dll) : error lnk2005: "public: __thiscall std::basic_string,class std::allocator>::basic_string,class std::allocator>(char const *)" (??0?$basic_string@du?$char_traits@d@std@@v?$allocator@d@2@@std@@qae@pbd@z) already defined in diesizedlg.obj

發現.exe用的是static mfc,而lib用的是share mfc dll, lib有兩個乙個是hm2p5datastructure,靜態庫,另乙個是hm2p5taskprogressgui,動態庫。 

1. 如果把.exe改為share mfc dll,通過。

2. 把hm2p5datastructure.lib 改為use standard windows libraries,還是有這個錯誤;進一步把runtime library從md改為mt,通過。

結論就是msvcpt.lib看來會被md的runtime library呼叫。

問題衝突的總結

上傳時的衝突 1.在寫 的時候,為了方便且減少 量,能重複使用的 通常都會將 封裝起來重複使用 封裝時,形參代替實參,實參又表示形參 2.在同乙個頁面中,新增的id,與修改的id,不可使用同乙個 3.新增與修改的獲取資料資訊以及回填資料的id,也不可為同乙個 4.因為id選擇器具有唯一性 的提交問題...

svn衝突問題

版本衝突原因 假設a b兩個使用者都在版本號為100的時候,更新了kingtuns.txt這個檔案,a使用者在修改完成之後提交kingtuns.txt到伺服器,這個時候提交成功,這個時候kingtuns.txt檔案的版本號已經變成101了。同時b使用者在版本號為100的kingtuns.txt檔案上...

分支提交的衝突問題

當我們的分支與master的提交發生衝突的時候,應當解決衝突,再提交git 比如我們新建乙個分支point,對point的檔案進行修改提交,再切換至master也進行修改提交,這時候合併兩個分支的時候就會發生衝突,應該對衝突檔案進行修改再commit git branch b point git c...