你如何包装一个视觉工作室c ++项目发布? [英] How do you pack a visual studio c++ project for release?

查看:189
本文介绍了你如何包装一个视觉工作室c ++项目发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何做一个发布版本,其中包括所有必要的dll文件到.exe中,所以该程序可以在非开发计算机上运行,​​而无需在目标机器上安装微软可再发行组件。

如果不这样做,您会得到应用程序配置不正确并重新安装的错误消息。

/ li>
  • 在您应该如何链接MFC的框中,选择静态链接。

  • 选择链接器 - >输入。
  • 请参阅此文章: http://www.geekadmin.com/?p=34


    I'm wondering how to make a release build that includes all necessary dll files into the .exe so the program can be run on a non-development machine without it having to install the microsoft redistributable on the target machine.

    Without doing this you get the error message that the application configuration is not correct and to reinstall.

    解决方案

    1. Choose Project -> Properties
    2. Select Configuration -> General
    3. In the box for how you should link MFC, choose to statically link it.
    4. Choose Linker -> Input. Under Additional Dependencies, add any libraries you need your app to statically link in.

    For more info, see this article: http://www.geekadmin.com/?p=34

    这篇关于你如何包装一个视觉工作室c ++项目发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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