PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

C++ hash_map?

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



Joined: 29 Nov 2005
Posts: 8

PostPosted: Tue Nov 29, 2005 5:06 pm    Post subject: C++ hash_map? Reply with quote

Is there a hash_map library/include for pgCC? I tried including the header files (which also have implementation) from the SGI STL site (http://www.sgi.com/tech/stl/), but I kept getting the same error over and over:

Code:
$ pgCC -I/home/skilpat/download/stl -A -c mycode.cc
"/home/skilpat/download/stl/type_traits.h", line 214: error: "__true_type" is
          ambiguous
     typedef __true_type    has_trivial_destructor;
(...)


It stops after 100 of that same error on different lines.
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Nov 30, 2005 12:23 pm    Post subject: Reply with quote

Hi skilpat,

The hash map header file is located at "include/CC/hash_map". While using the SGI STL should be possible, it is difficult. First, you'd need to recompiled the SGI STL libraries using pgCC. Then you'd need to link using the "-Mnostdlib" to have pgCC not include the PGI STL and add the SGI STL to the link line.

- Mat
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