Run-time error R6034 when compiling from the command prompt

那年仲夏 提交于 2019-12-20 05:00:48

问题


I tried to compile a simple "hello world" program in C (using MinGW) from the command prompt and had the following error:

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

I've done a couple searches on the subject and there seems to be a consensus on stray mscvr files placed in the path variable by other programs.

I've downloaded Process Explorer and tried to find any such files, but the msvcr files that I find (msvcr80 and msvcrt) are all loaded from the system32 folder.

This is what I have in my system path:

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

Any help on how to solve the problem would be appreciated.


回答1:


I finally figured out what was wrong. Matlab was the culprit; taking it out of my path solved the problem! :) – Dave



来源:https://stackoverflow.com/questions/27273594/run-time-error-r6034-when-compiling-from-the-command-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!