🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: crl.general
Article #3

Re: Problem with C for the mathematical programm

#3
From: Shaun Flisakowski
Date: Thu, 01 Feb 1996 09:00
18 lines
979 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
>and so on...                                ". 
>What's wrong?        

    You didn't link in the math library, try something like:

    cc -c name.c
    cc -o name name.o -lm

-- 
    Shaun        flisakow@cs.wisc.edu

   "In your heart you know its flat."
                           -Flat Earth Society
Technical Details
Message-ID: <4epvf8$534@spool.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!fontina.cs.wisc.edu!flisakow
References: <4epq2e$h4b@crl2.crl.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fontina.cs.wisc.edu!flisakow
From: flisakow@fontina.cs.wisc.edu (Shaun Flisakowski)
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: 1 Feb 1996 09:00:24 GMT
Organization: U of Wisconsin CS Dept
Message-ID: <4epvf8$534@spool.cs.wisc.edu>
References: <4epq2e$h4b@crl2.crl.com>
NNTP-Posting-Host: fontina.cs.wisc.edu