2 安装mingwt
MINGW_PATH= E:\androidDevelopment\MinGW
C_INCLUDE_PATH= %MINGW_PATH%\include;%MINGW_PATH%\lib\gcc\mingw32\4.7.0\include
CPLUS_INCLUDE_PATH=
%MINGW_PATH%\include;%MINGW_PATH%\lib\gcc\mingw32\4.7.0\include\c++;%MINGW_PATH%\lib\gcc\mingw32\4.7.0\include\c++\backward;%MINGW_PATH%\lib\gcc\mingw32\4.7.0\include\c++\mingw32
LIBRARY_PATH= %MINGW_PATH%\lib;%MINGW_PATH%\lib\gcc\mingw32\4.7.0
PATH= %MINGW_PATH%\bin;%MINGW_PATH%\libexec\gcc\mingw32\4.7.0
3 eclipse配置
windows->pereferences->c/c++->build->environment 添加如上几个变量
4 添加kernel.lib ,在C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib,添加不是64位的那个
eclipse 在工程上右键-》 toolsettings-> linker ->libraries->add