From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: C++, complex, etc Date: Mon, 15 May 2000 02:28:46 +0400 Organization: MTU-Intel ISP Lines: 55 Message-ID: <391F289E.CB26D14C@mtu-net.ru> References: <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> NNTP-Posting-Host: ppp108-214.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 958343467 47489 212.188.108.214 (14 May 2000 22:31:07 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 14 May 2000 22:31:07 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: ru,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I tried your suggestions, but the error is still the same. Compiler points to the line where I try to define that complex variable. No matter how I define it: complex j = complex (0,1); or complex j(0,1); I have still the same problem. "complex" is an unknown thing, although I have a lot of include files for complex math: complex.h, complex, complext.h, ... bye. Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru Damian Yerrick wrote: > > 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? > > --