delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/14/16:16:08

From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: C++, complex, etc
Date: Mon, 15 May 2000 01:00:50 +0400
Organization: MTU-Intel ISP
Lines: 39
Message-ID: <391F1402.31B7D4A6@mtu-net.ru>
NNTP-Posting-Host: ppp107-171.dialup.mtu-net.ru
Mime-Version: 1.0
X-Trace: gavrilo.mtu.ru 958338066 41151 212.188.107.171 (14 May 2000 21:01:06 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 14 May 2000 21:01:06 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

Hi!

I'm trying to get working the following program:
----------------8<----------------
#include <iostream.h>
#include <complex.h>

int main(void) {
  complex j = complex(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)".

The same source compiles under Borland C++. That means the source is okay.

I have installed the following files:
bnu2951b.zip
csdpmi4b.zip
djdev203.zip
djlsr203.zip
gcc2952b.zip
gpp2952b.zip
mak377b.zip
the rest are: allegro, rhide, g77 which are not important.

Maybe something is missed in my setup and I should download something? Seems
there is no C++ library, right?

bye.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019