I just recently tried to compile the latest libtcod from bitbucket with a up-to-date mingw installation (through mingw-get update / upgrade).

I had 2 issues :

The type of the first parameter in src/sys_c.c must be replaced by HINSTANCE (instead of HANDLE) :

BOOL APIENTRY DllMain( HINSTANCE hModule, DWORD reason, LPVOID reserved) {

The io.h standard header cannot compile in ANSI mode. That’s a known bug.

You have to replace off64_t by _off64_t in io.h :

__CRT_INLINE _off64_t lseek64 (int, _off64_t, int);
__CRT_INLINE _off64_t lseek64 (int fd, _off64_t offset, int whence) {


No Comment.

Add Your Comment