delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/22/01:01:45

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pow(complex,complex)
Date: Wed, 21 Jan 1998 20:23:10 -0800
Organization: Alcyone Systems
Lines: 18
Message-ID: <34C6C9AE.447C7806@alcyone.com>
References: <34C680D7 DOT 39D AT pop DOT a001 DOT sprintmail DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

C. W. Young wrote:

> My question is this:  Is the captioned function pow(complex,complex)
> supposed to work in dgjpp?  It compiles OK, will not run.  What's the
> deal?

Without more details than "will not run" it's a little hard to help. 
Probably the problem is that you're not linking in the math library. 
Put -lm on the command line after the modules (.c, .cc, .o files) to
link in the math library.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                     \
                       "Life may be / the product of imperfections."
                                   / (Marclo Gleiser)

- Raw text -


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