[maybe ot] how to initialize a class member vector type? 2
Christian Schäfer
caefer@krachstoff.net
Thu Dec 5 04:28:00 GMT 2002
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
More information about the Gcc-help
mailing list