In Xcode using LLVM 2.0, when I put the line using namespace std;
in my C++ code, I get this warning:
Semantic Issue
Using directive refers to implicitly-defined namespace 'std'
Is there a way to fix this? Why is it giving that warning?
Have you included any standard header files? Otherwise the compiler doesn't know about namespace std
.
Please post more code to clarify.
Moving the using namespace std to after the #include can eliminate this warning.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With