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

Fix link with jansson #63

Merged
merged 2 commits into from
Nov 9, 2022
Merged

Conversation

orgads
Copy link
Contributor

@orgads orgads commented Sep 1, 2021

jansson/lib/libjansson.a(value.o): In function `json_real':
value.c:(.text+0x3134): undefined reference to `__isnan'
value.c:(.text+0x314c): undefined reference to `__isinf'
jansson/lib/libjansson.a(value.o): In function `json_real_set':
value.c:(.text+0x3294): undefined reference to `__isnan'
value.c:(.text+0x32ac): undefined reference to `__isinf'
collect2: error: ld returned 1 exit status

jansson/lib/libjansson.a(value.o): In function `json_real':
value.c:(.text+0x3134): undefined reference to `__isnan'
value.c:(.text+0x314c): undefined reference to `__isinf'
jansson/lib/libjansson.a(value.o): In function `json_real_set':
value.c:(.text+0x3294): undefined reference to `__isnan'
value.c:(.text+0x32ac): undefined reference to `__isinf'
collect2: error: ld returned 1 exit status
@JoshMcCullough
Copy link
Contributor

@fitzyjoe can you review this, please?

@JoshMcCullough
Copy link
Contributor

@orgads thanks for the PR! Can you explain what -lm does for us here?

@orgads
Copy link
Contributor Author

orgads commented Nov 8, 2022

Links with the standard math lib. The functions _isnan and _isinf are used in jansson.

@JoshMcCullough
Copy link
Contributor

This looks good, just needs to be rebased.

@JoshMcCullough JoshMcCullough merged commit 69e6e53 into TeslaGov:master Nov 9, 2022
@orgads orgads deleted the link-with-lm branch November 9, 2022 15:36
@orgads
Copy link
Contributor Author

orgads commented Nov 9, 2022

Thank you.

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

Successfully merging this pull request may close these issues.

2 participants