Eclipse CDT displays semantic error, but builds successfully

青春壹個敷衍的年華 提交于 2019-12-25 00:17:47

问题


Before I update g++ from 4.6 to 4.7, my eclipse indigo CDT ran normally. After updating, it displays semantic errors, but builds and runs successfully. My code is that

using my_type = int;

Eclipse displays warning "syntax error"

I updated g++ 4.7 as default compiler.


回答1:


I fixed it by updating to eclipse juno . Before, I used eclipse helois what only supports C/C++ development tool 7.0



来源:https://stackoverflow.com/questions/15612673/eclipse-cdt-displays-semantic-error-but-builds-successfully

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!