This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [maybe ot] how to initialize a class member vector type? 2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]