From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18795 invoked by alias); 21 Feb 2008 20:08:09 -0000 Received: (qmail 18777 invoked by uid 22791); 21 Feb 2008 20:08:08 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Feb 2008 20:07:45 +0000 Received: by wr-out-0506.google.com with SMTP id c47so271697wra.20 for ; Thu, 21 Feb 2008 12:07:43 -0800 (PST) Received: by 10.141.68.12 with SMTP id v12mr7021486rvk.111.1203624461612; Thu, 21 Feb 2008 12:07:41 -0800 (PST) Received: from gx520 ( [70.165.104.146]) by mx.google.com with ESMTPS id g5sm521418wra.31.2008.02.21.12.07.40 (version=SSLv3 cipher=RC4-MD5); Thu, 21 Feb 2008 12:07:40 -0800 (PST) From: "David Arthur" To: "'Eljay Love-Jensen'" Cc: "'GCC-help'" References: <000101c874bf$b67007b0$500010ac@gx520> Subject: RE: STL problems in GCC 4.1.2 Date: Thu, 21 Feb 2008 20:08:00 -0000 Message-ID: <000201c874c5$69ff56a0$500010ac@gx520> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00261.txt.bz2 Hi Eljay, The GCC I am using is what was included in the SuSE Linux Enterprise Server 10 installation on the machine I am compiling with, so I am not sure how it was built. The program you gave was entered verbatim, and it compiles with no errors and runs nicely. :) Thanks for your quick replies! Dave -----Original Message----- From: Eljay Love-Jensen [mailto:eljay@adobe.com] Sent: Thursday, February 21, 2008 1:43 PM To: David Arthur Cc: GCC-help Subject: Re: STL problems in GCC 4.1.2 Hi David, Hmmm. It says that you are using a pre-release. Can you get a non-pre-release build of 4.1.2? Probably doesn't matter. It looks like it was built with "../configure", which is not a supported way to build GCC. That could be causing problems. It looks like it is using the correct cc1 and collect2. What errors does this short C++ "foo.cpp" program produce? ------------------------------------------------------------ // c++ -std=c++98 -Wall -Wextra -pedantic -o foo foo.cpp #include #include #include using std::cout; using std::endl; using std::list; using std::string; int main() { typedef list MyList; MyList myList; myList.push_back("hello"); myList.push_back("world"); myList.push_back("goodnight"); myList.push_back("moon"); for(MyList::iterator i = myList.begin(); i != myList.end(); ++i) { cout << *i << endl; } } ------------------------------------------------------------ --Eljay