Issue #7 resolved
Compilation error around int64 in some 64bit architectures
I got the following build failure from Anil, in MacOSX:
--- Checking if ocamldep understands -modules... (yes) Warning: liv is not built: it requires all_formats lablgtk2 Warning: Supported: all_formats supported png jpeg tiff xpm ps graphics freetype Warning: gifanim is not built: it requires gif lablgtk2 Warning: Supported: all_formats supported png jpeg tiff xpm ps graphics freetype *** omake: finished reading OMakefiles (0.39 sec) - build src tiffwrite.o + gcc -fPIC -I /Users/avsm/.opam/4.01.0/lib/ocaml -I/opt/X11/include/libpng15 -I/usr/local/Cellar/libtiff/4.0.3/include -I/opt/X11/include -I/usr/local/Cellar/freetype/2.4.10/include/freetype2 -I/usr/local/Cellar/freetype/2.4.10/include -I. -c -o tiffwrite.o tiffwrite.c *** omake: 149/673 targets are up to date *** omake: failed (1.10 sec, 25/25 scans, 8/18 rules, 77/367 digests) ### stderr ### ...[truncated] (use --progress to override). In file included from /usr/local/Cellar/libtiff/4.0.3/include/tiffio.h:33, from tiffwrite.c:33: /usr/local/Cellar/libtiff/4.0.3/include/tiff.h:77: error: redefinition of typedef ‘int64’ /Users/avsm/.opam/4.01.0/lib/ocaml/caml/config.h:127: error: previous declaration of ‘int64’ was here /usr/local/Cellar/libtiff/4.0.3/include/tiff.h:78: error: redefinition of typedef ‘uint64’ /Users/avsm/.opam/4.01.0/lib/ocaml/caml/config.h:128: error: previous declaration of ‘uint64’ was here *** omake: targets were not rebuilt because of errors: src/tiffwrite.o depends on: src/tiffwrite.c
This is since int64 is defined both in OCaml and libtiff.