Xref: news2.mv.net comp.os.msdos.djgpp:2332 From: Broeker AT axpmgr DOT physik DOT rwth-aachen DOT de (Hans-Bernhard Broeker) Newsgroups: comp.os.msdos.djgpp Subject: Re: Complex numbers Date: 1 Apr 96 13:50:45 GMT Organization: RWTH -Aachen / Rechnerbetrieb Informatik Lines: 28 Message-ID: References: NNTP-Posting-Host: axpmgr.physik.rwth-aachen.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp "Michael Schuster" writes: >Gruess Euch! >I' got a problem: >I wanted to use complex numbers with a programme (see below). >But I didn't manage to compile it.- I tried it with -lm, -lgpp, -O ... >and have no idea what to do, although 'complex.h' is in the include >directory. >Any idea? >#include >#include >#include >Void main() >{ Complex c1; > c1.re=10; >} Problem: at least in the libg++ used by DJGPP V2, the type Complex is *not* defined in (that one contains the template complex<>), but instead in <_complex.h>, which should be , but that doesn't work on DOS. Fix: #include <_complex.h> instead Hans-Bernhard Broeker (Aachen, Germany)