问题
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