From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: vectors in structs? Date: 1 Mar 1998 04:53:16 GMT Organization: The National Capital FreeNet Lines: 30 Message-ID: <6dapjs$s84@freenet-news.carleton.ca> References: <6d8dth$gfa$1 AT canopus DOT cc DOT umanitoba DOT ca> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "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 > > struct mystruct { > int x, y; > }; > > struct anotherstruct { > vector vecstruct; > }; > > and it gives me the following error: > c:/djgpp/tmp\ccdaaaaa(.text+0x28f6):myfile.cc: undefined reference to > `vector::operator=(vector 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