久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Visual Studio Express 2005 制作完全靜態鏈接

How do I make a fully statically linked .exe with Visual Studio Express 2005?(如何使用 Visual Studio Express 2005 制作完全靜態鏈接的 .exe?)
本文介紹了如何使用 Visual Studio Express 2005 制作完全靜態鏈接的 .exe?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前首選的 C++ 環境是免費且非常出色的 Microsoft Visual Studio 2005 Express 版本.我不時將發布的 .exe 文件發送給其他人,結果令人滿意.然而,最近我發現令人不安的結果是基于我想要的更多運氣.嘗試在舊的(2001 年份,未經過嚴格更新)XP 機器上運行其中一個程序時,只給我一條令人討厭的系統無法運行 x.exe"(或類似)消息.

My current preferred C++ environment is the free and largely excellent Microsoft Visual Studio 2005 Express edition. From time to time I have sent release .exe files to other people with pleasing results. However recently I made the disturbing discovery that the pleasing results were based on more luck that I would like. Attempting to run one of these programs on an old (2001 vintage, not scrupulously updated) XP box gave me nothing but a nasty "System cannot run x.exe" (or similar) message.

一些谷歌搜索顯示,使用此工具集,即使在簡單的 hello-world.exe 中指定靜態鏈接也會導致實際依賴額外的 .dll 文件(msvcm80.dll 等).一個令人難以置信的精心設計的版本計劃系統(任何人的清單文件?)然后不會讓 .exe 在沒有完全正確的 .dll 版本的情況下運行.我不想要或不需要這些東西,我只想要一個老式的自包含 .exe,它只執行最低公分母 Win32 操作并在任何舊的 win32 操作系統上運行.

Some googling revealed that with this toolset, even specifying static linking results in a simple hello-world.exe actually relying on extra .dll files (msvcm80.dll etc.). An incredibly elaborate version scheming system (manifest files anyone?) then will not let the .exe run without exactly the right .dll versions. I don't want or need this stuff, I just want an old fashioned self contained .exe that does nothing but lowest common denominator Win32 operations and runs on any old win32 OS.

有誰知道是否可以用我現有的工具集做我想做的事?

Does anyone know if its possible to do what I want to do with my existing toolset ?

謝謝.

推薦答案

對于 C 運行時,請轉到項目設置,選擇 C/C++,然后選擇代碼生成".將運行時庫"設置更改為多線程"而不是多線程 dll".

For the C-runtime go to the project settings, choose C/C++ then 'Code Generation'. Change the 'runtime library' setting to 'multithreaded' instead of 'multithreaded dll'.

如果您正在使用任何其他庫,您可能需要告訴鏈接器顯式忽略動態鏈接的 CRT.

If you are using any other libraries you may need to tell the linker to ignore the dynamically linked CRT explicitly.

這篇關于如何使用 Visual Studio Express 2005 制作完全靜態鏈接的 .exe?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How do I set the icon for my application in visual studio 2008?(如何在 Visual Studio 2008 中為我的應用程序設置圖標?)
Convert CString to const char*(將 CString 轉換為 const char*)
Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio(默認情況下,在 Visual Studio 中從項目中刪除安全警告 (_CRT_SECURE_NO_WARNINGS))
How do I start a new CUDA project in Visual Studio 2008?(如何在 Visual Studio 2008 中啟動新的 CUDA 項目?)
Exporting classes containing `std::` objects (vector, map etc.) from a DLL(從 DLL 導出包含 `std::` 對象(向量、映射等)的類)
What are some reasons a Release build would run differently than a Debug build(發布版本與調試版本的運行方式不同的一些原因是什么)
主站蜘蛛池模板: 午夜精品视频在线观看 | 亚洲精品成人免费 | 日日日操 | 精品美女在线观看视频在线观看 | 成人久草| 二区在线视频 | 国产日韩精品视频 | 天天干天天操 | 影音先锋成人资源 | 国产99久久久久 | 久久久久久久久久久福利观看 | 中文字幕欧美一区 | 国产精品成人一区二区三区吃奶 | 91日韩在线 | 欧美综合久久 | 香蕉视频在线播放 | 国产成人短视频在线观看 | 国产精品国产三级国产aⅴ中文 | 成人av免费在线观看 | 国产大片一区 | 欧美日韩视频 | 国产在线观看一区二区三区 | 日韩久久久久 | 337p日韩| 国产乱码高清区二区三区在线 | 久久99国产精一区二区三区 | a级在线免费视频 | www.黄色网| 久草福利| 在线午夜| 欧美一级二级在线观看 | www操操| 亚洲视频在线一区 | 亚洲精品久久久 | 超碰520| 国产亚洲精品久久久久动 | 成人av在线播放 | 日韩中文字幕一区 | 日本精品一区二区三区在线观看视频 | 91视视频在线观看入口直接观看 | www.色五月.com |