saving . . . saved use of namespace in g++ compiler has been deleted. use of namespace in g++ compiler has been hidden .
use of namespace in g++ compiler
Title
Question
why namespace is needed in g++ compiler in ubuntu? however for gcc in ubuntu and turbo c++ in windows it is not needed. so in gcc in ubuntu and turbo c++ in windows, there is no issue of namespace collision?

C-and-Cpp First-Cpp-Program 03-04 min 0-10 sec 29-02-20, 2:31 p.m. Kotakdevangi

Answers:

g++ implements the standard correctly.  Strictly you need to tell the program which namespace it is using.  Some compilers like turbo c++ do not enforce this.
29-02-20, 2:51 p.m. bhaskar76
which are namespace available other than std?
29-02-20, 3:41 p.m. Kotakdevangi

Login to add comment


Log-in to answer to this question.