[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Problem med sin-funktion



Jeg er fuldstændig grøn mht. c-programmering.

Jeg har flg. lille stump kode:
----------
#include <stdio.h>
#include <math.h>
main ()
{
	double x;
	x = 30.0;
	x *= 3.141593 / 180.0;
	x=sin(x);
	printf("%f\n",x);
	return 0;
}
----------

Når jeg kompilere den, får jeg flg:

----------
gcc -o t95 t95.c
/tmp/ccZqzuU1.o: In function `main':
/tmp/ccZqzuU1.o(.text+0x2a): undefined reference to `sin'
collect2: ld returned 1 exit status
----------

Hvorfor?
Findes der noget sted (i Linux-Mandrake), hvor jeg kan se syntaksen for fx.
brugen af sin-funktionen? man, info, doc eller andet?

--
Jan



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *