Hi!

I've compiled a Atari ST emulator that can record video. The one I've compiled the emulator crashes when the recorded video reaches a certain size and from what I can gather it's because off_t is 32bit, even if the the compiler is x86_64.

Using built-in specs.
COLLECT_GCC=/opt/cross-mingw-w64/bin/x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/opt/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.1/lto-wrapper
Target: x86_64-w64-mingw32

Configured with: /home/solskogen/mingw-w64-builder/trunk/bin/gcc/configure --prefix=/home/solskogen/obj/cross-mingw-w64 --libexecdir=/home/solskogen/obj/cross-mingw-w64/lib --target=x86_64-w64-mingw32 --disable-nls --enable-fully-dynamic-string --enable-libstdcxx-time=yes --enable-languages=c,c++ --disable-libstdcxx-pch --enable-checking=release --enable-lto --disable-dw2-exceptions --enable-libgomp --enable-threads=posix --disable-multilib --with-sysroot=/home/solskogen/obj/cross-mingw-w64


mingw-w64 is from the 5.x branch of mingw-w64.

With the compiler I used I get this with a small program:

sizeof off_t: 4 bytes

While on Linux
sizeof off_t: 8 bytes


solskogen@friend:~/temp$ cat test.c
#include <stdio.h>

int main(int argc, char *argv[])
{
        printf("sizeof off_t: %lu bytes\n",sizeof(off_t));
        return 0;
}


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to