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

Cannot link with stdint on Linux when using Uint128_val when HAVE_UINT128 #62

Closed
rixed opened this issue Jun 5, 2021 · 0 comments · Fixed by #63
Closed

Cannot link with stdint on Linux when using Uint128_val when HAVE_UINT128 #62

rixed opened this issue Jun 5, 2021 · 0 comments · Fixed by #63

Comments

@rixed
Copy link
Contributor

rixed commented Jun 5, 2021

ocamlfind ocamlopt -linkpkg -package stdint foo.ml -o foo.exe
/usr/bin/ld: src/libbar.a(bar.o): in function `baz':
bar.c:123: undefined reference to `get_uint128'
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
rixed added a commit to rixed/ocaml-stdint that referenced this issue Jun 5, 2021
rixed added a commit to rixed/ocaml-stdint that referenced this issue Jun 5, 2021
rixed added a commit to rixed/ocaml-stdint that referenced this issue Sep 16, 2021
rgrinberg added a commit to rgrinberg/opam-repository that referenced this issue Oct 15, 2022
CHANGES:

## Fixes:

* Fix undefined reference to `get_uint128` (andrenth/ocaml-stdint#62)
* Add `[@@noalloc]` where possible (andrenth/ocaml-stdint#64)
* Fix compatibility with 5.0 (andrenth/ocaml-stdint#68)
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 a pull request may close this issue.

1 participant