PDA

View Full Version : Sgi Stl


Rij
March 12th, 2008, 01:11 PM
Hello,
Does Ubuntu have the SGI implementation of STL? I am trying to use hash_map in my programs but it will not compile. If not, how can I get it installed?
Also, how does one check for this?

KaeseEs
March 13th, 2008, 05:38 PM
* Copyright (c) 1996
* Silicon Graphics Computer Systems, Inc.


Ubuntu ships with g++ as its C++ compiler, which uses GNU libstdc++ as its STL implementation. This implementation is heavily based on code from HP and SGI's STLs. Because hash_map isn't standard, but an STL extension, it's included in the ext subdirectory of your main include path. So, to use it, replace#include <hash_map>with#include <ext/hash_map>

Good luck!