LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-08-2004, 01:35 AM   #1
nigham
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: Fedora Core 2
Posts: 32

Rep: Reputation: 15
problems using the SGI STL library


hi

i downloaded the SGI STL because i wanted the hash_map implementations. however the moment i use -I/usr/include/sgi_stl (where i've put in the sgi include files) and use them, there are a whole lot (hundreds) of errors generated in all sorts of header files, in both the sgi side and the normal cpp headers.

so is the SGI STL not compatible or is there something I'm missing out on?

thanks
 
Old 10-08-2004, 06:13 AM   #2
dakensta
Member
 
Registered: Jun 2003
Location: SEUK
Distribution: Debian & OS X
Posts: 194

Rep: Reputation: 35
I believe the current libstdc++ is derived from the SGI implementation (you will find Silicon Graphics copyright all over the source) and secondly there is a hash_map already with g++, so use something like:

#include <ext/hash_map>
using namespace __gnu_cxx;

reference: http://gcc.gnu.org/onlinedocs/libstd...hash__map.html

Last edited by dakensta; 10-08-2004 at 06:15 AM.
 
Old 10-08-2004, 10:33 PM   #3
nigham
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: Fedora Core 2
Posts: 32

Original Poster
Rep: Reputation: 15
whoa i didn't know that!
thanks dakensta!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with gd-library anttu Linux - Newbie 8 09-14-2004 03:28 AM
Problem due to STL Library vipinsharma Programming 9 06-01-2004 03:46 AM
SERIOUS library problems... help! BroX Linux - Software 4 01-14-2004 03:14 AM
library problems Ismark Linux - Newbie 1 01-04-2002 05:50 PM
Library problems Ismark Linux - Software 3 01-04-2002 05:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration