Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide private sqrt() or mandate -lm ? #20

Open
DBJDBJ opened this issue Nov 11, 2021 · 0 comments
Open

provide private sqrt() or mandate -lm ? #20

DBJDBJ opened this issue Nov 11, 2021 · 0 comments

Comments

@DBJDBJ
Copy link

DBJDBJ commented Nov 11, 2021

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 DBJDBJ changed the title minor but required adjustments provide private sqrt() or mandate -lm ? Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant