delorie.com/archives/browse.cgi | search |
Xref: | news2.mv.net comp.os.msdos.djgpp:7926 |
Newsgroups: | comp.os.msdos.djgpp |
From: | Robert Jaycocks <r DOT jaycocks1 AT lut DOT ac DOT uk> |
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 <merser AT image DOT dk>?= |
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<iostream.h> > #include<complex.h> > = > 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |