无法在不同的机器上运行本机C ++应用程序 [英] Unable to run native C++ application on different machine

查看:175
本文介绍了无法在不同的机器上运行本机C ++应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2008在C ++中写了一个简单的Hello,world应用程序。我可以在本地机器上成功运行应用程序。 BUt当我复制exe到另一台机器上运行,它不运行。它给出错误应用程序未能启动,因为应用程序配置不正确。另一个系统没有安装Visual Studio。可能的问题是什么?



感谢,
Rakesh。

解决方案>

可能CRT DLL丢失。使用静态CRT - / MT(/ MTd进行调试)编译应用程序。 更多信息



在Visual studio中,转到项目属性> C / C ++>代码生成>运行时库。


I wrote a simple 'Hello, world' application in C++ using Visual Studio 2008. I am able to run the app successfully on my local machine. BUt when I copy the exe onto another machine and run, it does not run. It gives the error that 'Application has failed to start because application configuration is incorrect'. The another system does not have Visual Studio installed. What could be the problem?

Thanks, Rakesh.

解决方案

Probably the CRT DLL is missing. Compile your app using static CRT - /MT (/MTd for debug). More info.

In Visual studio go to Project properties > C/C++ > Code Generation > Runtime Library.

这篇关于无法在不同的机器上运行本机C ++应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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