PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

using namespace std

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
steabert



Joined: 09 Jun 2006
Posts: 6

PostPosted: Mon Jul 03, 2006 12:37 pm    Post subject: using namespace std Reply with quote

Hi,

If I don't use the statement:

using namespace std;

pgCC still recognizes e.g. "endl", while g++ doesn't.

why?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6146
Location: The Portland Group Inc.

PostPosted: Wed Jul 05, 2006 11:01 am    Post subject: Reply with quote

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
Back to top
View user's profile
steabert



Joined: 09 Jun 2006
Posts: 6

PostPosted: Wed Jul 05, 2006 11:04 am    Post subject: Reply with quote

Hi,

thanks for the clarification.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group