0

I am currently installing libtcod for MinGW to make a roguelike and was following the instructions from the documentation on their website : http://doryen.eptalys.net/data/libtcod/doc/1.5.2/html2/compile_libtcod_mingw.html?c=true&cpp=true&cs=true&py=true&lua=true Everything worked up to the compiling of libtcod (at the end) with...

make -f makefiles/makefile-mingw

...where I get an Error 1 on the file src\zlib\zutil.c. Here's a screenshot : http://i855.photobucket.com/albums/ab112/maximemoring/error1.png

Does anyone know this problem and/or knows how to fix it?

Maxime M.
  • 357
  • 1
  • 4
  • 17

1 Answers1

0

So off64_t seems to be undefined. Based on this thread, it sounds like compiling with _LARGEFILE64_SOURCE set may fix the problem. You can pass that define to the compiler by running make like so:

make -f makefiles/makefile-mingw CPPFLAGS=-D_LARGEFILE64_SOURCE=1

Moritz
  • 4,565
  • 2
  • 23
  • 21