#include <math.h> ?????
On Tue, 2003-02-18 at 07:19, Dragos Popescu wrote:
> Am urmatoarea bucata de cod:
> #include <stdio.h>
> #include <tgmath.h>
> #define M 5
> #define N (1<<M)
>
> main(){
> fixed real[N], imag[N];
> int i;
>
> printf("Original\n");
> for (i=0; i<N; i++){
> real[i] = 1000 * cos(i*2*3.1415926535/N);
> imag[i] = 0;
> printf("%d: %d, %d\n", i, real[i], imag[i]);
> }
>
> Cand dau s-o compilez:
> [dragos@dragos TestFFT]$ gcc int_fft.c
> /tmp/ccwXnwp9.o: In function `main':
> /tmp/ccwXnwp9.o(.text+0x743): undefined reference to `cos'
> collect2: ld returned 1 exit status
> [dragos@dragos TestFFT]$
>
> La compilarea in C pe linux sunt bâtă. Cum fac sa compilez si eu acest
> amarat de program ?
>
> --
> Dragos P
> 126296 luser
> "La revedere. Drum bun"
>
>
> --
> Pentru dezabonare, trimiteti mail la
> [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
> REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
>
>
>
--
IULIAN DEMETRESCU
Payment Systems Manager
SATELROM SRL
Str Drobeta nr. 4-10
etaj 2 ap. 9 sct. 2
70258 BUCHAREST ROMANIA
Tel. +4021 212 19 86
Fax +4021 212 19 87
Mob. +4074 013 00 32
Mob. +4078 810 41 73
e-mail [EMAIL PROTECTED]
--
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/