我的电脑在Windows 7 32位下运行。我有:
我试过了:
我在eclipse控制台中收到以下错误消息:
**** Rebuild of configuration Release for project Cpp test Project ****
**** Internal Builder is used for build ****
g++ -O3 -Wall -c -fmessage-length=0 -osrc\Cpp test Project.o ..\src\Cpp test Project.cpp
g++ -oCpptestProject.exe src\Cpp test Project.o
Warning: .drectve `-aligncomm:"___hexdig_D2A",5' unrecognized
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/crt2.o(.text+0x1f1)C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.
:crt1.c: undefined reference to `__chkstk_ms'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/libmingwex.a(glob.o)(.text+0x5e3)C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.
:glob.c: undefined reference to `__chkstk_ms'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/libmingwex.a(glob.o)(.text+0x690):glob.c: undefined reference to `__chkstk_ms'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/libmingwex.a(glob.o)(.text+0x7e9):glob.c: undefined reference to `__chkstk_ms'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/libmingwex.a(glob.o)(.text+0x82d):glob.c: undefined reference to `__chkstk_ms'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/libmingwex.a(glob.o)(.text+0xc0d):glob.c: more undefined references to `__chkstk_ms' follow
collect2: ld returned 1 exit status
Build error occurred, build is stopped
Time consumed: 3057 ms.
我一直浏览互联网一个小时左右,阅读MinGW安装指南一百万次,并按照一些大学安装指南安装C ++ eclipse。一切都没有了!提前感谢您的回答。