积极答复者
怎么能让编译好的C++程序脱离开发环境运行?

问题
答案
-
设置为 Release ,使用 多线程(/MT)编译选项,如果使用了MFC或ATL,设置为在静态中使用MFC,静态链接到ATL。
- 已建议为答案 Allen In Studying 2012年12月21日 9:57
- 已标记为答案 Damon ZhengModerator 2013年1月2日 5:37
-
你好,
补充一下,采用非静态链接方式编译的程序,移植到别的机器上运行,目标机器不必安装Visual C++的IDE,只需要安装Visual C++ Redistribute Package就可以了。
Visual C++ Redistribute Package包含了Visual C++ 库的各种运行时组件。
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 Damon ZhengModerator 2013年1月7日 6:48
全部回复
-
设置为 Release ,使用 多线程(/MT)编译选项,如果使用了MFC或ATL,设置为在静态中使用MFC,静态链接到ATL。
- 已建议为答案 Allen In Studying 2012年12月21日 9:57
- 已标记为答案 Damon ZhengModerator 2013年1月2日 5:37
-
你好,
补充一下,采用非静态链接方式编译的程序,移植到别的机器上运行,目标机器不必安装Visual C++的IDE,只需要安装Visual C++ Redistribute Package就可以了。
Visual C++ Redistribute Package包含了Visual C++ 库的各种运行时组件。
Damon Zheng
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 Damon ZhengModerator 2013年1月7日 6:48