Closed sidkshatriya closed 3 years ago
Thanks. I've forgot to update it after https://github.com/ocamllabs/ocaml-ctypes/pull/651
The warning is currently unavoidable, because ctypes doesn't support cv type qualifiers: https://github.com/ocamllabs/ocaml-ctypes/issues/134
Thanks for the super-quick merge!
There is something a bit confusing about getting the examples to work. When you try to run make
, it complains about ctypes.foreign
library being missing. This can be confusing to someone new to ctypes because the user thinks "Hey I already installed the ctypes package!?".
I needed to google this and the fix, of course, is to install the virtual package ctypes-foreign
which enables the ctypes.foreign
library in the current switch...
Mentioning this here for anybody's future reference. It would also be great if we somehow made this clear in a README.md
or automated this in some other way...
When issuing
make
in the ppx_cstubsexamples
subfolder the following problem is encountered:This eventually ends up in a compiler error:
Other examples e.g. inline.exe etc. also complain about missing -thread
This PR fixes the compilation problem by adding
-thread
toexamples/Makefile
Additionally, I receive the following c-compiler warnings while running
make
in theexamples
folder:Are these warnings harmless?