我有一个VS 2008的C++ X32构建和当我试图在全新的Windows 7运行虚拟机上安装,我得到以下错误:不正确的C++运行时组件
"WINDOWS 7 error The application has failed to start because the side by side configuration is incorrect please see the application event log or use the command line sxstrace.exe tool for more detail."
我发现以下分辨率:
The machine is missing the correct C++ runtime components for your type of system. (x86 or x64). Installing the following update resolves the issue. Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
有关vs 2008解决方案的详细信息:我使用unicode,我不使用ATL或MFC只是标准Windows库。
我的问题是:我做错了什么?这是正常的还是从开发阶段就可以克服这个问题。我必须做什么以便我的程序能够第一次运行。
所以......你安装了可再发行组件包吗?它解决了问题吗? – interjay
不,我没有,因为我问自己是否有一种方法不需要安装它 – AlexandruC
从Visual Studio编译的所有程序都需要一个运行时库(实际上包含'new','delete'使用的函数库和其他运行时支持功能)。运行程序时,此运行时库需要在那里。无论是通过安装共享库,还是通过将项目设置为静态链接项目,以使运行时链接到程序。 –