From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: C++, complex, etc Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 39 X-Trace: /b/VKWx3qwnj2DAsICogrZ6lUQzaXqGiZzeQqBk36y+Sy352OHaLfenWHS2eWXFWbT7aZB9RjOSC!aizbqySNgFY0KEjngDG7+RhELfo6xcV8/zhLSkEhBCUKblCvYye+RVqYGv1uzLiLOy992l+f2S9n!ftq6f2U= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sun, 14 May 2000 21:34:45 GMT Distribution: world Date: Sun, 14 May 2000 21:34:45 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 15 May 2000 01:00:50 +0400, "Alexei A. Frounze" wrote: >Hi! > >I'm trying to get working the following program: >----------------8<---------------- >#include >#include Change the above lines to #include #include using namespace std; >int main(void) { > complex j = complex(0,1); How about complex j(0, 1); > cout << "hello world!\n"; > return 0; >} >----------------8<---------------- > >I'm trying to compile it using: gcc -c test.cc >But I get an Error: "'complex' undeclared (first use in this function)". Error on what line? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/