Sublime Text Editor 2 w / MinGW编译器(C ++)

时间:2014-08-22 13:36:54

标签: mingw sublimetext2

我无法让MinGW编译器与Sublime 2一起工作。

运行命令提示符并输入" g ++ -version"得到结果

C:\Users\Adam>g++ -version
g++: error: unrecognized command line option '-version'
g++: fatal error: no input files
compilation terminated.

我已将MinGW bin文件夹添加到Path下的环境变量中,但仍未添加任何内容。 当我尝试从Sublime 2构建时,我得到了这个......

In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44:0,
             from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\postypes.h:40,
             from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iosfwd:40,
             from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ios:38,
             from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
             from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
             from C:\Users\Adam\Desktop\c++\Testingz.cpp:1:
c:\mingw\include\wchar.h:37:20: fatal error: stddef.h: No such file or directory
#include <stddef.h>
                ^
compilation terminated.
[Finished in 0.2s with exit code 1

关于解决方案的任何想法?使用Windows 8

0 个答案:

没有答案