直接启动Eclipse就会编译出错,但是,如果用开始菜单的Start Eclipse with MingW就一切正常??
怪事,就是加了一个环境变量而已啊,我在系统变量里面已经加了啊。。应该是一样的,为什么会出错?
@echo off
rem
rem This file is generated by the installer
rem
echo Setting up environment...
echo -- Using MinGW in: D:\MinGW\bin
set PATH=D:\MinGW\bin
set PATH=%PATH%;%SystemRoot%\System32
echo Starting eclipse...
call "D:\Eclipse\eclipse.exe"
这个就是启动的Bat文件,如果不用它,手工启动Eclipse,就会出错
d:\Qt\4.4.0\lib/libqtmain.a(qtmain_win.o)(.text+0x26):qtmain_win.cpp: undefined reference to `__gxx_personality_sj0'
匪夷所思,D:\MinGW\bin我已经加了啊。。。