This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [maybe ot] how to initialize a class member vector type? 2
- From: Christian Schäfer <caefer at krachstoff dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 5 Dec 2002 13:31:56 +0100
- Subject: Re: [maybe ot] how to initialize a class member vector type? 2
- References: <432529447.20021205130444@krachstoff.net>
- Reply-to: Christian Schäfer <caefer at krachstoff dot net>
sorry, for the mistake in my previous mail. the error I encountered
was only a warning the error was/still is:
[linker error] undefined reference to 'endl(ostream &)'
[linker error] undefined reference to 'cerr'
CS> hi all,
CS> I have a class like the following:
CS> class Bar
CS> {
CS> private:
CS> vector<someObject> objects;
CS> ...
CS> }
CS> when I try to create an instance of it within my main().
CS> I get an error by the linker.
CS> in foo.o ... uninitialized copy<..>(..)
CS> what does that mean? and how can I initialize that vector.
CS> maybe a constructor issue?
CS> regards
CS> /Christian mailto:caefer@krachstoff.net
--
Best regards,
Christian mailto:caefer@krachstoff.net