using namespace std

Hi,

If I don’t use the statement:

using namespace std;

pgCC still recognizes e.g. “endl”, while g++ doesn’t.

why?

Hi steabert,

Different compilers have different default options and pgCC uses the standard namepsace by default. To override this default, add “–no_using_std” to the compilation line.

  • Mat

Hi,

thanks for the clarification.