Open StoneyStu opened 6 years ago
When following instructions on http://liquidsdr.org/blog/pll-howto/ my build failed with the following error (on kubuntu 18.04):
x@kubuntu-1804:~/liquid-dsp/pll/liquid_pll_example$ make pll_example gcc -Wall -O2 -lm -lc -o pll_example pll_example.c /tmp/ccJ75o4p.o: In function `main': pll_example.c:(.text.startup+0xf7): undefined reference to `sincosf' pll_example.c:(.text.startup+0x120): undefined reference to `sincosf' pll_example.c:(.text.startup+0x1bd): undefined reference to `atan2f' collect2: error: ld returned 1 exit status makefile:8: recipe for target 'pll_example' failed make: *** [pll_example] Error 1 x@kubuntu-1804:~/liquid-dsp/pll/liquid_pll_example$
The problem was resolved by changing the order of the gcc line in the makefile from: gcc -Wall -O2 -lm -lc -o $@ $< to gcc -o $@ $< -Wall -O2 -lc -lm
Just thought I'd mention it.
Thanks! You know, I had to go through and change the makefile to accommodate new versions of gcc that enforced this ordering change. I'll make the fix right away.
When following instructions on http://liquidsdr.org/blog/pll-howto/ my build failed with the following error (on kubuntu 18.04):
The problem was resolved by changing the order of the gcc line in the makefile from: gcc -Wall -O2 -lm -lc -o $@ $< to gcc -o $@ $< -Wall -O2 -lc -lm
Just thought I'd mention it.