SHARE
TWEET

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!
  1. gcc first.c -o first
  2. /usr/bin/ld: /tmp/cctTS68G.o: in function `main':
  3. first.c:(.text+0x2e): undefined reference to `sqrt'
  4. /usr/bin/ld: first.c:(.text+0x8c): undefined reference to `pow'
  5. collect2: error: ld returned 1 exit status
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. OK, I Understand
Top