eclipse下编译cocos2dx出错

代码在mac下编译通过的,但是放到eclipse下各种报错

其实在eclipse的console里也是编译通过的,但是eclipse的editor下很多红x,比如

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
报无效参数(Invalid arguments 'Candidates are:void glBlendFunc(unsigned int, unsigned int)')
而GL_SRC_ALPHA和GL_ONE_MINUS_SRC_ALPHA都报找不到符号(Symbol 'GL_SRC_ALPHA' could not be resolved)
但其实open declaraion(F3)都是能追踪到的,但能追踪到3个来源,不知道是不是这三个来源混淆了编译

/projectname/cocos2dx/......./win32/...../glew.h
/projectname/cocos2dx/......./winrt/...../gl2.h
(ndk安装路径)/plantforms/....../gl2.h

另外还有ccc4f之类的好几个也报错,F3追踪过去基本上都是和opengl库有关,都是能追踪到多个来源,感觉是eclipse设置上的问题
网上搜了有的说是ndk的bug,但我已经是最新版本了,也有说是indexer出错,我反复改了好几个选项也没解决