From: Ron House Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Re: STL broken? Date: Wed, 06 Dec 2000 02:59:57 +0000 Organization: University of Queensland Lines: 30 Message-ID: <3A2DABAD.4772D050@usq.edu.au> References: <3A2C3ACD DOT 18F8C1D5 AT usq DOT edu DOT au> <3IgX5.2566$Ah3 DOT 46410 AT news6-win DOT server DOT ntlworld DOT com> NNTP-Posting-Host: heracles.usq.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: bunyip.cc.uq.edu.au 976071526 14941 139.86.208.29 (6 Dec 2000 02:58:46 GMT) X-Complaints-To: news AT uq DOT edu DOT au NNTP-Posting-Date: 6 Dec 2000 02:58:46 GMT X-Mailer: Mozilla 3.04 (X11; I; Linux 2.2.5-22 i686) X-Original-NNTP-Posting-Host: 139.86.144.127 X-Original-Trace: 6 Dec 2000 12:58:33 +1000, 139.86.144.127 X-Abuse: abuse AT usq DOT edu DOT au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Colin Girling wrote: > > Well, you might find the compiler is at fault, and not the library. > The Microsoft Visual C++ compiler is hopeless with the STL, and I have lost > count on the things it cannot compile. I am using gcc 2.95.2 under djgpp, with STL version 3.3 downloaded from the cgi website (which seems to be identical to the one supplied with djgpp). As my program is so trivial, I am simply flabbergasted that hundereds of people are not having all their programs fall over by the dozen. What is going on here? Fixing the lack of int before main, here again is the completely trivial example that stumps this system: #include using namespace std; // Tried with & without this line int main() { std::vector > i; // Tried with & without the "std::" return 0; } This works with STL V3.2. Is there anyone here who can test this program and see if they can get it to compile with _STL 3.3_, and if so, what compiler are you using? -- Ron House house AT usq DOT edu DOT au http://www.sci.usq.edu.au/staff/house A rose grows in the Earth's good soil.