From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25204 invoked by alias); 5 Dec 2002 12:31:02 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 25194 invoked from network); 5 Dec 2002 12:31:00 -0000 Received: from unknown (HELO ns.isdd.sk) (213.151.209.11) by sources.redhat.com with SMTP; 5 Dec 2002 12:31:00 -0000 Received: (qmail-ldap/ctrl 23260 invoked from network); 5 Dec 2002 12:36:42 -0000 Received: from liptak.isdd.sk (HELO liptak) ([10.10.1.164]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 5 Dec 2002 12:36:42 -0000 From: =?ISO-8859-15?Q?Michal_Lipt=E1k?= To: Subject: RE: [maybe ot] how to initialize a class member vector type? 2 Date: Thu, 05 Dec 2002 04:31:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal In-Reply-To: <504161694.20021205133156@krachstoff.net> X-SW-Source: 2002-12/txt/msg00048.txt.bz2 using namespace std; this question is asked too many times in this maillist.. and it's not gcc related :( m. > -----Original Message----- > From: gcc-help-owner@gcc.gnu.org=20 > [mailto:gcc-help-owner@gcc.gnu.org]On Behalf Of Christian Sch=E4fer > Sent: Thursday, December 05, 2002 1:32 PM > To: gcc-help@gcc.gnu.org > Subject: Re: [maybe ot] how to initialize a class member vector type? 2 >=20 >=20 > sorry, for the mistake in my previous mail. the error I encountered > was only a warning the error was/still is: >=20 > [linker error] undefined reference to 'endl(ostream &)' > [linker error] undefined reference to 'cerr' >=20 > CS> hi all, >=20 > CS> I have a class like the following: >=20 > CS> class Bar > CS> { > CS> private: > CS> vector objects; > CS> ... > CS> } >=20 > CS> when I try to create an instance of it within my main(). > CS> I get an error by the linker. >=20 > CS> in foo.o ... uninitialized copy<..>(..) >=20 > CS> what does that mean? and how can I initialize that vector. > CS> maybe a constructor issue? >=20 >=20 > CS> regards > CS> /Christian mailto:caefer@krachstoff.net >=20 >=20 > --=20 > Best regards, > Christian mailto:caefer@krachstoff.net >=20 >=20