Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu12:~# cat test.c
- #include <stdio.h>
- #include <math.h>
- int main(void) {
- int x=0;
- for (x=0 ; x <= 360; x++) {
- printf("%2.5f\n", cos((double)x));
- }
- return(0);
- }
- emag@ubuntu12:~# gcc -lm -o test test.c
- /tmp/ccNA1O2l.o: In function `main':
- test.c:(.text+0x1e): undefined reference to `cos'
- collect2: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement