2014-12-03 166 views
1

編譯時,運行時錯誤R6034我試圖從命令提示符編譯一個簡單的「Hello World」,在C程序(使用MinGW),並有以下錯誤:從命令提示符

R6034 : An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information.

我我已經對這個主題進行了一些搜索,似乎對其他程序放置在路徑變量中的流浪文件存在共識。

我已經下載了Process Explorer並試圖找到任何這樣的文件,但我找到的msvcr文件(msvcr80msvcrt)都是從system32文件夾加載的。

這是我在我的系統路徑:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\R2008a\bin\win32;c:\mingw\bin. 

就如何解決該問題的任何幫助將不勝感激。

+0

Msvcr80.dll應該*不*存在於c:\ windows \ system32中。它只能生活在並排緩存中,c:\ windows \ winsxs目錄下。刪除該DLL。否則,*很不清楚「hello world」程序如何能夠依賴它。 – 2014-12-03 15:07:57

+0

謝謝。我終於明白出了什麼問題。 Matlab是罪魁禍首;從我的道路上解決問題! :) – Dave 2014-12-03 15:57:02

+2

也許你應該將你的評論轉換爲答案? – 2014-12-03 16:52:45

回答

0

我終於明白出了什麼問題。 Matlab是罪魁禍首;從我的道路上解決問題! :) - Dave