🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.mandrake
Article #504

Using Standard template lib

#504
From: Chris Bruyere
Date: Mon, 22 Dec 2003 17:20
36 lines
2549 bytes
Hi All, I am trying to set up the standard template library (C++) and use
it in my projects. I have downloaded it and unpacked it into:

/usr/stl

I haven't even tried to use something from the stl, but when I try to
compile my project using

g++ ... -I /usr/stl ...

I get the following error:

In file included from /usr/stl/string:22,
                 from Management/Tests/test5.cpp:8:
/usr/stl/stdexcept:26: parse error before `{' token
/usr/stl/stdexcept:30: `_S_bufsize' was not declared in this scope
/usr/stl/stdexcept:30: ISO C++ forbids declaration of `_M_name' with no type
/usr/stl/stdexcept:30: assignment (not initialization) in declaration
/usr/stl/stdexcept:31: parse error before `}' token
/usr/stl/stdexcept:32: virtual outside class declaration
/usr/stl/stdexcept:32: non-member function `const char* what()'
	 cannot have `const' method qualifier
/usr/stl/stdexcept: In function `const char* what()':
/usr/stl/stdexcept:32: `_M_name' undeclared (first use this function)
/usr/stl/stdexcept:32: (Each undeclared identifier is reported only
	 once for each function it appears in.)
/usr/stl/stdexcept: At global scope:
/usr/stl/stdexcept:34: parse error before `private'
/usr/stl/stdexcept:36: `_S_bufsize' was not declared in this scope
/usr/stl/stdexcept:37: parse error before `}' token
etc....

Any help would be greatly appreciated

Thanks
Chris Bruyere
Technical Details
Message-ID: <pan.2003.12.22.17.18.05.942655@_telus.net>
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!news3.optonline.net!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps13.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f65d0,e41d6c5ca3ecaf86,start
X-Google-Attributes: gidf65d0,public
X-Google-Thread: fc9ab,e41d6c5ca3ecaf86,start
X-Google-Attributes: gidfc9ab,public
X-Google-Thread: f8a83,e41d6c5ca3ecaf86,start
X-Google-Attributes: gidf8a83,public
X-Google-ArrivalTime: 2003-12-22 09:20:07 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!news3.optonline.net!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps13.POSTED!not-for-mail
From: "Chris Bruyere" <bruyere_AT@_telus.net>
Subject: Using Standard template lib
User-Agent: Pan/0.13.0 (The whole remains beautiful)
Message-ID: <pan.2003.12.22.17.18.05.942655@_telus.net>
Newsgroups: alt.os.linux.mandrake,gnu.gcc,alt.comp.linux
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Lines: 36
Date: Mon, 22 Dec 2003 17:20:07 GMT
NNTP-Posting-Host: 142.59.128.75
X-Trace: clgrps13 1072113607 142.59.128.75 (Mon, 22 Dec 2003 10:20:07 MST)
NNTP-Posting-Date: Mon, 22 Dec 2003 10:20:07 MST