🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: crl.general
Article #11

Re: Problem with C for the mathematical programm

#11
From: WOOD JAMEY RYAN
Date: Sat, 03 Feb 1996 03:55
10 lines
811 bytes
In article <4epq2e$h4b@crl2.crl.com>, Iouri Sorkine <sorkin@crl.com> wrote:
>
>I execute "cc name.c" and receive "ld: Undefined symbol
>                                       _cos
>                                       _sin

To use these functions you need to tell the compiler to link with the math 
libraries.  To do this, try: "cc name.c -lm"

--Jamey
Technical Details
Message-ID: <4eumc5$ph0@peabody.colorado.edu>
Path: arc1-ca.pugleaf.net!rintintin.Colorado.EDU!woodjr
References: <4epq2e$h4b@crl2.crl.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!rintintin.Colorado.EDU!woodjr
From: woodjr@rintintin.Colorado.EDU (WOOD  JAMEY RYAN)
Newsgroups: crl.general,comp.sys.sun.misc,comp.unix.sys5.misc,comp.lang.c,sci.math
Subject: Re: Problem with C for the mathematical programm
Date: 3 Feb 1996 03:55:49 GMT
Organization: University of Colorado, Boulder
Message-ID: <4eumc5$ph0@peabody.colorado.edu>
References: <4epq2e$h4b@crl2.crl.com>
NNTP-Posting-Host: rintintin.colorado.edu