🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.os.linux.mandrake
1 messages
1 total messages Started by Chris Bruyere Mon, 22 Dec 2003 17:20
Using Standard template lib
#504
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads