久久久久久久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(發布版本與調試版本的運行方式不同的一些原因是什么)
主站蜘蛛池模板: 天天影视综合 | 久久精品色欧美aⅴ一区二区 | 91精品久久久久久久久 | 国产精品久久久亚洲 | 综合久久av | 国产精品毛片一区二区三区 | 国产精品免费在线 | 国产精品一二三区在线观看 | 91超碰在线观看 | 国产成人精品一区二三区在线观看 | 三级成人片 | 97国产一区二区 | 伊人爽 | 日本一区二区三区在线观看 | 国产激情在线 | 亚洲成人在线视频播放 | 国产福利在线 | 超碰av免费| 欧美精产国品一二三区 | 日本精品一区二区三区在线观看视频 | 日本亚洲精品 | 热99精品视频| 日本三级电影免费 | 中文字幕一二三区 | 91精品国产自产在线老师啪 | 五月花丁香婷婷 | 久久国内精品 | 成人国产精品一级毛片视频毛片 | 狠狠操电影 | 欧美一区二区免费在线 | 性高湖久久久久久久久 | 日本在线黄色 | 91 在线| 91看片官网| 成人免费大片黄在线播放 | 久久亚洲一区二区 | 国产精品99久久久久久宅男 | 亚洲精品欧洲 | 亚洲一区二区成人 | 中文字幕在线视频精品 | 三级成人在线 |