Skip to content

July 19, 2015

Error: main.cpp: warning: using directive refers to implicitly-defined namespace ‘std’

by noise

If you see the following error when trying to compile a C++ application:

main.cpp: : : warning: using directive refers to implicitly-defined namespace 'std'

then that means you do not have any header file inclusion that uses std namespace.

You can fix this warning by including a C++ header file that uses a std namespace otherwise the compile will not know about std namespace.

Read more from C and C++ Errors

Leave a Reply

required
required

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments