devxlogo

Compilation Warning

Compilation Warning

Question:
I got a warning when I compiled my C++ program onHP-UX:

Line 219: Warning: Namespace is a future reserved keyword (215).
What does this mean?

Answer:
It means exactly what it says. The C++ language has a scope called namespace scope. This is a relatively new feature of the language andhas not been implemented by many compilers. In your program you are probably using a variable called namespace and the compiler is warning you against that, because it is a reserved word.

devx-admin

Share the Post: