“Use MFC in a Static Library” -> CRT static

來源:互聯網
上載者:User
VC “Use MFC in a Static Library” -> CRT static
CRT 動態就不能編譯。
原因大概是MFC的靜態串連庫使用了靜態CRT(runtime library)。

一般庫的編譯都是動態CRT,如wxWidgets庫,
看來MFC應該動態串連才能與其它庫相容。

MFC動態串連是否會造成目標機器因缺少DLL無法運行?
找了幾個機器發現都可以運行。

查看一文:
VC下使用stl如何擺脫MSVCP60.dll?
98以上的系統就內建有MFC42.dll

不過DEBUG版是沒有的。

另一問題:CRT動態庫是否會缺?
msvcrt.dll可能都有。
msvcp60.dll可能沒有!該DLL會用到嗎?

所有庫都為靜態比較放心。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.