<HTML>
<HEAD>
<TITLE>Re: How to Compile libstdc++ v3 by gcc 2.95.3?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana">Hi Chih-Wei,<BR>
<BR>
Not that this will help with your compile issue, but...<BR>
<BR>
You shouldn't inherit from the STL classes.  Notice that std::stack<> does not have a virtual destructor -- a big red flag saying "don't (publically) inherit from me!"<BR>
<BR>
Use containment (i.e., member variable).  Or, if you really have to, private/protected inheritance.<BR>
<BR>
(Yet another scenario where "explicit typedef" would be an effective solution.)<BR>
<BR>
--Eljay<BR>
<BR>
On 4/15/02 6:38 AM, "Chih-Wei Chiu" <jwchiu@csie.nctu.edu.tw> wrote:<BR>
<BR>
</FONT><BLOCKQUOTE><FONT FACE="Monaco"><TT>Program Listing<BR>
===============<BR>
#include <stack><BR>
class bar : public std::stack<int> {};<BR>
int main( int argc, char* argv[] ) { return 0; }<BR>
</TT></FONT></BLOCKQUOTE><FONT FACE="Monaco"><TT><BR>
</TT></FONT>
</BODY>
</HTML>