- 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
SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.