Article View: alt.os.linux.mandrake
Article #505Re: Problems with STL
From: ufar
Date: Fri, 26 Dec 2003 22:38
Date: Fri, 26 Dec 2003 22:38
28 lines
2145 bytes
2145 bytes
|I installed also template library (STL) v3.3 and got exactly the same |errors. I Run RedHat9 Linux. | |1) I found out that this RedHat box already included a STL (g++) library |by default. Maybe your Mandrake has it too ? | |Check /usr/include/g++-3/ directory. | |# ls -l /usr/include/g++* | |I think that STL was bundled with this g++ compiler. |No need to to compile with -I/usr/stl, if STL is already in /usr/include/. | | |2) Try this program |Compile it with: | |$ g++ stl1.cpp |$ ./a.out (to run it) For what it's worth this compiles fine under SUSE 9.0 which has gcc 3.3.1. Hope these are the results you expect: c strlen=3, s.size=3 1.2345 2.3456 13.8268 --
Technical Details
Message-ID:
<1M2Hb.65914$aT.2491@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.hal-mli.net!feeder2.hal-mli.net!news.moat.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mailReferences:
<pan.2003.12.24.16.24.15.383169@_telus.net> <KyYGb.8440$Y06.131485@news4.e.nsc.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8a83,7c13b7a1664bc9bc X-Google-Attributes: gidf8a83,public X-Google-Thread: f65d0,7c13b7a1664bc9bc X-Google-Attributes: gidf65d0,public X-Google-ArrivalTime: 2003-12-26 14:40:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.hal-mli.net!feeder2.hal-mli.net!news.moat.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail Newsgroups: alt.os.linux.mandrake,gnu.gcc Subject: Re: Problems with STL References: <pan.2003.12.24.16.24.15.383169@_telus.net> <KyYGb.8440$Y06.131485@news4.e.nsc.no> From: ufar@ivvkwn.com Organisation: none X-Warning-1: Do not spam: nospam@moago.org X-Warning-2: uce@ftc.gov - report@fraud.org - spamrecycle@ChooseYourMail.com X-Warning-3: rbl@mail-abuse.org - rss@mail-abuse.org - dul@mail-abuse.org X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: ken@machine.domain (Ken Yap) Lines: 29 Message-ID: <1M2Hb.65914$aT.2491@news-server.bigpond.net.au> Date: Fri, 26 Dec 2003 22:38:53 GMT NNTP-Posting-Host: 144.136.64.182 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1072478333 144.136.64.182 (Sat, 27 Dec 2003 09:38:53 EST) NNTP-Posting-Date: Sat, 27 Dec 2003 09:38:53 EST Organization: BigPond Internet Services