Re: [code] What the hell?

From: Caldera Desktop User (mch@thantos.mudservices.com)
Date: 10/03/96


On Thu, 3 Oct 1996, Ebon Mists wrote:

> I am trying to use the sqrt() function... square roots. man sqrt says it's
> included from math.h. I included math.h.
> Compiles fine.
> Links and I get:
> utils.o(.text+0x4518): undefined reference to 'sqrt'
> make: *** [../bin/circle.new] Error 1
> 
> I take out the #include <math.h> and it says implicit delceration of
> function 'sqrt' so I know the math.h needs to be included... but it cant
> find the function anywhere... any hints/ideas/suggestions?
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
> 
I don't know if this will work but have you included math.h in your 
Makefile, you have to add a 'math.h' flag in the big long paragraph of 
all the files to be compiled, and you have to add a string lower down I 
believe.

Andrew, Devastations Mud

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST