Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 1998 20:16:25 +1100 (EST)
From:      Brendan Kosowski <brendan@bmk.com.au>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Problem with C compile on FreeBSD 2.2.5
Message-ID:  <Pine.BSF.3.96.981025200814.7576A-200000@garfield>

index | next in thread | raw e-mail

[-- Attachment #1 --]

The C compiler on FreeBSD 2.2.5 will not let me comile an ANSI-C program
that works fine on other ANSI-C compilers.

The problem is with the trig. functions ( ie. sin, asin, etc... ).

It says something like undefined symbol "_sin" referenced from text
segment.

I have included <math.h>.

Program attached.

Thanks & Regards, Brendan...

[-- Attachment #2 --]

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main(void)
{
	double a, b;
	
	a = 0.785;
	b = sin(a);
	printf("%f", b);	
	return 0;
}
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981025200814.7576A-200000>