error w/out -lm flag
silver2row Jun 22nd, 2020 (edited) 882 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- gcc first.c -o first
- /usr/bin/ld: /tmp/cctTS68G.o: in function `main':
- first.c:(.text+0x2e): undefined reference to `sqrt'
- /usr/bin/ld: first.c:(.text+0x8c): undefined reference to `pow'
- collect2: error: ld returned 1 exit status
RAW Paste Data