视觉工作室更改动态链接到Win32应用程序的静态链接 [英] visual studio change dynamic linking to static linking for win32 app

查看:137
本文介绍了视觉工作室更改动态链接到Win32应用程序的静态链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序已经通过动态配置创建了

the app is already created with dynamic configuration

有人知道如何将动态链接更改为静态链接到win32应用程序?
注意:只需更改

anybody knows how to change dynamic linking to static linking for win32 app ? Note: just changing


属性 - > 配置属性 - > C / C ++ - > 代码生成

Properties -> Configuration Properties -> C/C++ -> Code Generation

给出链接错误

感谢所有帮助

推荐答案

在属性 - >配置属性 - > C / C ++ - >代码生成

On the Properties -> Configuration Properties -> C/C++ -> Code Generation

运行时库从多线程(/ MT)到多线程调试(/ MTd)为我工作,所以msvcr100.dll不再需要,因为它是内置到exe。因此,静态连接已启用。

Setting 'Runtime Library' from Multi-threaded (/MT) to Multi-threaded Debug (/MTd) worked for me so the msvcr100.dll was no longer required because it is built into the exe. Thus static linking is enabled.

我没有收到任何链接错误。你有什么错误?

I did not get any linking error. What is the error you got?

这篇关于视觉工作室更改动态链接到Win32应用程序的静态链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆