ubench.h icon indicating copy to clipboard operation
ubench.h copied to clipboard

provide private sqrt() or mandate -lm ?

Open DBJDBJ opened this issue 2 years ago • 0 comments

https://godbolt.org/z/EfEvq6nh3

Please see that Godbolt.

For well-known reasons linker complains and compilation is not done linker complains sqrt() can not be found, thus '-lm' is required.

yes I know this is C only a Linux issue. I added some sqrt() implementation and that code links ok, with no -lm linker requirement "drama".

This seems like an easy way out ...

DBJDBJ avatar Nov 11 '21 07:11 DBJDBJ