A large number of syntax errors in eclipse3.7. 0indigo, but can be successfully compiled

92 0

After eclipse indigo installs the cdt, it also prompts for errors in addition to the automatic completion of the function.
For example, printf, the size ( ) member function in vector, etc.
Figure diagrams

Although it's a bunch of mistakes, compilation passes and runs successfully. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!

2 Answers

113 5

It's the newly added codan ( code analysis ) function in indigo. Details: http://wiki. Eclipse. org/CDT/User/NewI..
Now that the new functionality isn't really perfect, you can also choose to disable all"syntax and semantic error", as follows:
"preference"-> & c/c + + -> & code analysis -> & syntax and semantics error"

...