🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #691

How to load sqrt function with g++

#691
From: John O'neill
Date: Fri, 22 Jan 1993 01:52
11 lines
733 bytes
I cannot link(load) a program that calls log and sqrt.  I started looking 
at the Normal distribution from libg++ and it calls log and sqrt.

My problem is that I get undefined symbols.  Ive tried:
-lm -lgcc

How do you compile programs with math calls ?
Im running g++ 2.2.(2?) and libg++ 2.2.2 on Decstation 5000/240.

Thanks,
	John O'Neill
Technical Details
Message-ID: <JJO619.93Jan22015236@thor.albany.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!rpi!sarah!cscnews!jjo619

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!rpi!sarah!cscnews!jjo619
From: jjo619@csc.albany.edu (John O'neill)
Subject: How to load sqrt function with g++
Message-ID: <JJO619.93Jan22015236@thor.albany.edu>
Sender: news@sarah.albany.edu (News Administrator)
Organization: State University of New York at Albany
Date: 22 Jan 93 01:52:36
Lines: 11