Can't build
Opened this issue · 1 comments
lawin1 commented
After executing command gcc -lm -std=c99 -g pi2fm.c -o pi2fm I'm getting error:
/tmp/ccpOEuyt.o: In function `playWav':
/home/pi2/pi2fm/pi2fm.c:119: undefined reference to `floor'
collect2: error: ld returned 1 exit status
This error occurs on RPi2 with Ubuntu 16.04.
alcalyn commented
Does this solution works : http://stackoverflow.com/questions/8671366/undefined-reference-to-pow-and-floor ?