Xref: news2.mv.net comp.os.msdos.djgpp:7926 Newsgroups: comp.os.msdos.djgpp From: Robert Jaycocks Subject: Re: COMPLEX Sender: usenet AT lboro DOT ac DOT uk (Usenet-News) Message-ID: <3222E48B.546E@lut.ac.uk> Date: Tue, 27 Aug 1996 12:05:31 GMT To: S=?iso-8859-1?Q?=F8ren Merser ?= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 References: <3218A172 DOT 34DC AT image DOT dk> Mime-Version: 1.0 Organization: Loughborough University Lines: 29 DJ-Gateway: from newsgroup comp.os.msdos.djgpp S=F8ren Merser wrote: > = > Please,what's wrong? > The foollowing code won't compile: > = > #include > #include > = > int main() > { > complex c(1.1, 2.2); > cout << c << endl; > return; > } > = > The complier says: > `complex=B4 is undeclaredYou need to have a look at the complex.h header= file. Complex has now been defined as a template. Also when linking, you need to link in the stdcx library. = eg: use double_complex instead. Robert.