Mail Archives: djgpp/1998/03/01/01:32:33
"andy brandt" (umbrand2 AT cc DOT umanitoba DOT ca) writes:
> i'm having a problem of putting a vector in a struct... my code goes
> something like this:
>
> #include <vector>
>
> struct mystruct {
> int x, y;
> };
>
> struct anotherstruct {
> vector<mystruct> vecstruct;
> };
>
> and it gives me the following error:
> c:/djgpp/tmp\ccdaaaaa(.text+0x28f6):myfile.cc: undefined reference to
> `vector<mystruct>::operator=(vector<mystruct> const &)'
>
> i also tried adding the -lstdcx to the command line which also didn't help.
> anyone have any ideas of why this might be happening or know what i am doing
> wrong? thanks.
Isn't that vector.h?
--
.*. Friendship, companionship, love, and having fun are the reasons for
-() < life. All else; sex, money, fame, etc.; are just to get/express these.
`*' Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com
- Raw text -