Skip to content

Support OCaml 4.07.1 #12

Open
Open
@xyproto

Description

@xyproto

OCamlSDL2 no longer builds with the latest version of OCaml+SDL2.

I get the following error:

sdltimer_stub.c: In function ‘caml_SDL_GetTicks_d’:
/usr/lib/ocaml/caml/memory.h:335:12: error: ‘caml__frame’ undeclared (first use in this function); did you mean ‘caml_raise’?
     (void) caml__frame, \
            ^~~~~~~~~~~
/usr/lib/ocaml/caml/memory.h:416:3: note: in expansion of macro ‘CAMLxparam1’
   CAMLxparam1 (x)
   ^~~~~~~~~~~
sdltimer_stub.c:29:5: note: in expansion of macro ‘CAMLlocal1’
     CAMLlocal1(ret);
     ^~~~~~~~~~
/usr/lib/ocaml/caml/memory.h:335:12: note: each undeclared identifier is reported only once for each function it appears in
     (void) caml__frame, \
            ^~~~~~~~~~~
/usr/lib/ocaml/caml/memory.h:416:3: note: in expansion of macro ‘CAMLxparam1’
   CAMLxparam1 (x)
   ^~~~~~~~~~~
sdltimer_stub.c:29:5: note: in expansion of macro ‘CAMLlocal1’
     CAMLlocal1(ret);
     ^~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions