PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

pgc++ compiling error with templates std

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



Joined: 24 Oct 2012
Posts: 1

PostPosted: Wed Oct 24, 2012 6:57 am    Post subject: pgc++ compiling error with templates std Reply with quote

Hello,
we are trying to compile an existing source code with pgc++ (pgi v12.5) (with the option pgCC instead of pgc++ everything is going well) but we have error problems with the std templates. We take the message e.g.:

"../../include/Descp/Base/DesSTLContainer.h", line 20: error: list is not a
template
typedef list<DesMesh*> DesMeshContainer;

Has anyone any idea about this kind of errors in pgc++?
Back to top
View user's profile
Deborah Caruso



Joined: 20 Oct 2004
Posts: 43

PostPosted: Wed Oct 24, 2012 9:06 am    Post subject: using namespace std; required when moving to pgc++ Reply with quote

I suspect that you need "using namespace std;"
The following small test case compiles for both pgCC and pgc++


#include <list>
using namespace std;
class DesMesh {
int i;
};
typedef list<DesMesh*> DesMeshContainer;
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