2013-09-16 41 views
0

我有一個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庫。

我的問題是:我做錯了什麼?這是正常的還是從開發階段就可以克服這個問題。我必須做什麼以便我的程序能夠第一次運行。

+1

所以......你安裝了可再發行組件包嗎?它解決了問題嗎? – interjay

+0

不,我沒有,因爲我問自己是否有一種方法不需要安裝它 – AlexandruC

+1

從Visual Studio編譯的所有程序都需要一個運行時庫(實際上包含'new','delete'使用的函數庫和其他運行時支持功能)。運行程序時,此運行時庫需要在那裏。無論是通過安裝共享庫,還是通過將項目設置爲靜態鏈接項目,以使運行時鏈接到程序。 –

回答

2

從Visual Studio編譯的所有程序都需要一個運行時庫(該庫實際上包含新建,刪除和其他運行時支持功能所使用的函數)。運行程序時,此運行時庫需要在那裏。無論是通過安裝共享庫,還是通過將項目設置爲靜態鏈接項目,以使運行時鏈接到程序。