I am compiling a quite a big project using VxWorks6.8 C++ compiler. I am getting following warning
warning: extra tokens at end of #endif directive
#ifndef _OM_NO_IOSTREAM
#ifdef WIN32
#ifndef USE_IOSTREAM
#define USE_IOSTREAM
#endif USE_IOSTREAM
#endif WIN32
I am getting a quite a lot of these warnings.
- Why i am getting these warnings and from C++ standard point of
view?- What is the good reason why compiler is warning for this?
- What is the best way to fix this?
Thanks
Should be:
endifdoesn’t take any arguments. Such comments are placed only for better readability.You also missed closing
#endif // _OM_NO_IOSTREAMat the end.