0

Having some trouble using [Core] library in windows.

For 5.x.x I'm getting the following error with open Core:

File "bin/dune", line 3, characters 7-11:
3 |  (name main)
           ^^^^
** Cannot resolve symbols for C:\opamroot\opam-01f65a\5.3.0\lib\base_bigstring\libbase_bigstring_stubs.a(base_bigstring_stubs.o):
 memmem
File "caml_startup", line 1:
Error: Error during linking (exit code 2)

For 4.14.2 I'm getting the following error when trying to opam install core:

# File "core/src/dune", line 11, characters 10-25:
# 11 |  (c_names bigstring_stubs md5_stubs array_stubs gc_stubs time_ns_stubs)
#                ^^^^^^^^^^^^^^^
# (cd _build/default/core/src && C:\opamroot\opam-01f65a\4.14.2\bin\x86_64-w64-mingw32-gcc.exe -O2 -fno-strict-aliasing -fwrapv -mms-bitfields -O2 -fno-strict-aliasing -fwrapv -mms-bitfields -D_LARGEFILE64_SOURCE -g -I C:/opamroot/opam-01f65a/4.14.2/lib/ocaml -I C:\opamroot\opam-01f65a\4.14.2\lib\base -I C:\opamroot\opam-01f65a\4.14.2\lib\base\base_internalhash_types -I C:\opamroot\opam-01f65a\[...]
# bigstring_stubs.c:42:10: fatal error: endian.h: No such file or directory
#    42 | #include <endian.h>
#       |          ^~~~~~~~~~
# compilation terminated.

Here is a similar question: Unable to use Core on Windows

3
  • Did you use opam to install OCaml? Commented Apr 21 at 16:40
  • This issue has already been reported and I’m using a patched version when I’m compiling the code for windows. We just wait for the dev to update the code. Commented Apr 22 at 6:09
  • @Chimrod how did you apply the patch? Did you just clone core, apply the diff, and use the core library locally? Commented May 17 at 2:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.