🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42512

math function - gcc 2.5.8

#42512
From: Kevin
Date: Wed, 29 Nov 1995 00:00
30 lines
1134 bytes
	Hi all - 

	I am running Linux 1.2.9 with gcc 2.5.8.  I do not know if my
problem has to do with this implementation if C, but here it is:

I am trying to use some of the functinos in <math.h>, specifically,
cos, pow, and sin.  I #include <math.h> but when I use sin, for example,

main()
{
double a; /* tried float, too */

a=sin(.5);
printf("%f\n",a);
}

cc gives me 
/tmp/cca010231.o: Undefined symbol ___sin referenced from text segment

What am I doing wrong?


Thanks,
Kevin

-- 
Kevin Kretz - 7th year senior		Bike:	1986 Yamaha FJ1200 DoD#3278
Rutgers College				Dog:	Murphy the Chocolate Lab
Computer Science/Physics		Gun:    SIG-Sauer P226
http://remus.rutgers.edu/~kretz         Computer: AMD 486/DX280 running LINUX
Technical Details
Message-ID: <49hrh5$naa@romulus.rutgers.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7bf0b03814cdd6bd,start
X-Google-Attributes: gid11318c,public
From: kretz@romulus.rutgers.edu (Kevin)
Subject: math function - gcc 2.5.8
Date: 1995/11/29
Message-ID: <49hrh5$naa@romulus.rutgers.edu>
X-Deja-AN: 120615988
distribution: usa
organization: Rutgers University LCSR
newsgroups: gnu.gcc.help