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

Linker error on Ubuntu 18.04 #4

Closed
michal2229 opened this issue Oct 15, 2019 · 2 comments
Closed

Linker error on Ubuntu 18.04 #4

michal2229 opened this issue Oct 15, 2019 · 2 comments

Comments

@michal2229
Copy link

michal2229 commented Oct 15, 2019

I have a problem as described here.
When trying to make the binaries, I have errors about missing math functions, like:

undefined reference to `pow'

and so on.

Solution described in linked topic:

The simplest solution is simply to change [in Makefile]:
LDFLAGS = -lm
to
LDLIBS = -lm

enabled me to compile and use the binary.

Another fix was to compile it using g++ and add -fpermissive flag.

@rahra
Copy link
Owner

rahra commented Oct 22, 2019

Oh, I see, you are right.
Thanks, I'll fix it.

@rahra
Copy link
Owner

rahra commented Oct 22, 2019

Fixed in 8fb47a6.

@rahra rahra closed this as completed Oct 22, 2019
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

2 participants