delorie.com/archives/browse.cgi | search |
From: | "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Problem with complex.h |
Date: | Wed, 28 Mar 2001 11:41:59 -0500 |
Organization: | Global Crossing Telecommunications |
Lines: | 31 |
Sender: | UNKNOWN AT 209-130-148-86 DOT nas3 DOT roc DOT gblx DOT net |
Message-ID: | <99t469$g32$1@node17.cwnet.frontiernet.net> |
References: | <2F012012AA AT et DOT put DOT poznan DOT pl> |
NNTP-Posting-Host: | 209-130-148-86.nas3.roc.gblx.net |
X-Trace: | node17.cwnet.frontiernet.net 985797641 16482 209.130.148.86 (28 Mar 2001 16:40:41 GMT) |
X-Complaints-To: | abuse AT frontiernet DOT net |
NNTP-Posting-Date: | 28 Mar 2001 16:40:41 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
make sure you declare complex variables correctly. I had some problems when I tried to compile simple code involving complex math with GCC. the code compiled correctly with m$, borland and watcom compilers, but GCC didn't like declarations like this: complex j(0,1); or complex j = complex(0,1); instead I had to write something like this: complex<float> j(0,1); or float_complex j(0,1); Good Luck -- Alexei A. Frounze alexfru [AT] chat [DOT] ru http://alexfru.chat.ru http://members.xoom.com/alexfru/ http://welcome.to/pmode/ "JANUSZ POCHMARA" <jpochm AT et DOT put DOT poznan DOT pl> wrote in message news:2F012012AA AT et DOT put DOT poznan DOT pl... > Hi. > > I use in my program two includes allegro.h and complex.h. > When I compile program I have manny warrnings and errors for complex > library. Compiler didn't see this library. What am I doing ? (Program > is very simply - display fractal on my monitor. Runnig all right for > real numbers). >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |