Closed TwiN closed 3 years ago
Seems that libm
(lib math) isn't correctly linked to your project.
You were right
Thank you @Xartrick
I have exactly this issue. would be nice to have a tipp of actually linking it against clibm instead of just pointing out the obvious. I'm just calling "go get [link_to_repository]" , i can't see any way of passing linker flags here
Could someone elaborate on the solution of linking libm
? I am encountering the same error here. Not sure how to reference this lib to correctly link. Thanks! @Xartrick
Hi there ^^
Link libm or the math lib. to the cmd as follow : $ gcc main.c -lws2811 -lm -o \<yourOutputName> Also find the ref. here https://stackoverflow.com/questions/5419366/why-do-i-have-to-explicitly-link-with-libm
Didn't notice at post, sorry ^^'
Hi there ^^
Link libm or the math lib. to the cmd as follow : $ gcc main.c -lws2811 -lm -o Also find the ref. here https://stackoverflow.com/questions/5419366/why-do-i-have-to-explicitly-link-with-libm
Thanks so much for the reply! Running that command returns:
gcc: error: missing filename after ‘-o’
Any idea what should go after -o?
@nmerchant after -o
, you can specify the name of the output binary.
For instance, if you want the output binary to be baguette
, you'd do -o baguette
.
As of https://github.com/jgarff/rpi_ws281x/pull/409, I am getting the following error when calling rpi_ws281x after installing it via
scons
:I'm aware that I'm using this library through another repository, but I believe that the root cause lies within this repository (or more precisely, since the aforementioned PR (#409)).
I've created an issue on that library as well for traceability: https://github.com/rpi-ws281x/rpi-ws281x-go/issues/12