delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/11/20:28:22

From: "ÀÌÁÖÇü" <ljh AT khgw DOT info DOT samsung DOT co DOT kr>
Newsgroups: comp.os.msdos.djgpp
Subject: [Q]complex in djgpp
Date: Fri, 11 Dec 1998 23:26:06 +0900
Organization: Seoul National University, Republic of Korea
Lines: 25
Message-ID: <74sesf$d40$1@news.kren.nm.kr>
NNTP-Posting-Host: 203.254.232.87
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I want to compile this program types.

/* main.C */
#include <complex.h>
...
int main(void)
{
    complex a,b,c;
    b=sin(a)
    c=a+b;
....
}

BUT

commnad :
    g++ -c main.C

error messange :
    main.C:81 'complex' undeclared <first use this function>

How can I overcome this compile error.



- Raw text -


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