[ocaml-ctypes] Spinning process on osx

Daniel Bünzli daniel.buenzli at erratique.ch
Tue Feb 11 18:24:03 GMT 2014


In order to reduce the investigation surface I made the bug self contained so that you just need ctypes, the C library libsdl2 and this file (i.e. no need for the whole tsdl):

http://erratique.ch/tmp/bug.ml

So here are the steps:

brew install sdl2
opam install ctypes
cd /tmp
curl -O http://erratique.ch/tmp/bug.ml
ocamlfind ocamlopt -ccopt "`sdl2-config --libs`" \
             -package ctypes,ctypes.foreign -linkpkg \
             -o bug.native bug.ml

./bug.native # booom

Best,

Daniel


More information about the Ctypes mailing list