[ocaml-ctypes] Build error when compiling Ctypes on centos 5

Jeremy Yallop yallop at gmail.com
Wed May 13 14:03:16 BST 2015


On 13 May 2015 at 13:51, Thomas Braibant <thomas.braibant at gmail.com> wrote:
> For some obscure reason, I need to compile Ctypes on centos 5.x in a hurry.
> Unfortunately, I get the following error message in the compilation process
>
[...]
> /home/vagrant/ocamlbrew/ocaml-4.02.1/.opam/4.02.1+PIC/build/ctypes.0.4.0/src/ctypes/ctypes_primitives.h:99:3:
> error: #error "No suitable OCaml type available for representing long longs"

That's odd.  Could you post the output of the following program?

#include <stdio.h>
#include <limits.h>
#include <stdint.h>
#include <inttypes.h>

int main(void)
{
  printf("ULLONG_MAX: %llu\nUINT64_MAX: %" PRIu64"\n",
         ULLONG_MAX, UINT64_MAX);
  return 0;
}


More information about the Ctypes mailing list