I'm using the latest master branch with MSVC on Windows. I had ocurl working in release 0.9.2.
$ opam exec --switch dkml dune build
File "_build/default/clibs.sexp", line 3, characters 1-93:
3 | (Y:/source/dksdk-coder/.ci/o/dkml/share/dkcoder-c/debug/lib/pkgconfig/../../lib/libcurl-d.lib)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: This atom must be quoted because it is the first element of a list and
doesn't start with - or:
Double-quoting CURLLIBS is sufficient to fix my problem, but I doubt that works when CURLLIBS has multiple terms like -L/some/where -lcurl.
Anyway, simply sticking the output of pkg-config into a Dune s-exp does not guarantee a valid Dune s-exp. Dune has a Dune Configurator that handles generating s-exp correctly, but sadly that is an overhaul of the build system for ocurl.
I'm using the latest master branch with MSVC on Windows. I had ocurl working in release 0.9.2.
This is from
clibs.sexp.in
that has:with the parameters from
config.log
:and that is from libcurl.pc:
Double-quoting CURLLIBS is sufficient to fix my problem, but I doubt that works when
CURLLIBS
has multiple terms like-L/some/where -lcurl
.Anyway, simply sticking the output of
pkg-config
into a Dune s-exp does not guarantee a valid Dune s-exp. Dune has a Dune Configurator that handles generating s-exp correctly, but sadly that is an overhaul of the build system for ocurl.