Comment 3 for bug 249355

Revision history for this message
Eric Peterson (epeters3) wrote :

Attached is a simple OCamlSDL program that causes the problem; it can be compiled with

ocamlc -c -g -I /usr/lib/ocaml/3.10.0/sdl -I +lablGL Bug.ml

and that command should error out with

The files /usr/lib/ocaml/3.10.0/lablGL/glDraw.cmi
and /usr/lib/ocaml/3.10.0/sdl/sdlgl.cmi make inconsistent assumptions
over interface Raw

When this error is fixed, you can link it using

ocaml -I /usr/lib/ocaml/3.10.0/sdl -I +lablGL -g bigarray.cma sdl.cma lablgl.cma sdlloader.cma -o bug Bug.cmo

and run it using

./bug

Upon successfully compiling, linking, and executing, it should draw a colorful triangle in a fresh OpenGL window and quit when the user presses 'q'.