*BSD News Article 12198


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!wupost!cs.utexas.edu!torn!mcshub!maccs!cs3mh3bx
From: cs3mh3bx@maccs.mcmaster.ca (Dan Marino #13)
Subject: those darn libraries
Message-ID: <1993Mar3.003329.17295@mcshub.dcss.mcmaster.ca>
Sender: usenet@mcshub.dcss.mcmaster.ca
Nntp-Posting-Host: maccs.dcss.mcmaster.ca
Organization: Department of Computer Science, McMaster University
Date: Wed, 3 Mar 1993 00:33:29 GMT
Lines: 23

#include <math.h>

main()

{

      double x;

      x = sqrt(26);

}

# cc -lm name.of.above.file

unresolved sysmbol _sqrt

--------------------------------

Does anyone see what is wrong with the above.  I did a grep sqrt libm.a and
it is there so why can't the linker resolve the sqrt symbol?

Help!!!!