🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: crl.general
Article #6

Re: Problem with C for the mathematical programm

#6
From: Richard Czech
Date: Thu, 01 Feb 1996 13:46
22 lines
1388 bytes
In article <4epq2e$h4b@crl2.crl.com>, sorkin@crl.com (Iouri Sorkine) writes:
|> 
|> I execute "cc name.c" and receive "ld: Undefined symbol
|>                                        _cos
|>                                        _sin
|> and so on...                                ". 
|> What's wrong?        

You didn't read the manual page. Try "man cos" and you'll find

  SYNOPSIS
     cc [ flag ... ] file ...  -lm [ library ... ]

Then you may execute "cc name.c -lm".


----------------------------------------------------------------------
       Richard Czech                      e-mail: Richard.Czech@gmd.de
	 GMD-SET
   Schloss Birlinghoven                   phone:    (+49) 2241 14 2039
53754 St. Augustin, Germany               fax:      (+49) 2241 14 2342
----------------------------------------------------------------------
Technical Details
Message-ID: <4eqg7l$cki@omega.gmd.de>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!borneo!richard
References: <4epq2e$h4b@crl2.crl.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.gmd.de!borneo!richard
From: richard@borneo.gmd.de (Richard Czech)
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 13:46:29 GMT
Organization: GMD - German National Research Center for Information Technology
Sender: richard@langeoog (Richard Czech)
Message-ID: <4eqg7l$cki@omega.gmd.de>
References: <4epq2e$h4b@crl2.crl.com>
Reply-To: Richard.Czech@gmd.de
NNTP-Posting-Host: langeoog.gmd.de