Eclipse CDT shows semantic errors, but compilation is ok
问题 I have installed Eclipse Indigo for C/C++ Linux developers on Ubuntu 10.04 x86. When I use common predefined macro __BASE_FILE__ Eclipse says Symbol '__BASE_FILE__' could not be resolved , but compilation is OK. I have to use it so often in my code and Eclipse fills my screen with red lines and bug icons :) How can I fix this? 回答1: Not sure if this addresses your specific problem, but I also had semantic errors. They just came out of the blue after having a working project. Anyway, I fixed it