How do I compile shmupmametgm?

Thread in 'Discussion' started by shapeshifter, 18 Jan 2017.

  1. So i'm trying to compile from this git repo here. Using the make command found in mingw msys64/win32/ with the command line "make SUBTARGET=tgm NOWERROR=1". When I try to compile I receive these errors:

    Code:
    Compiling src/osd/windows/winwork.c...
    src/osd/windows/winwork.c: In function 'void* compare_exchange_ptr(void* volatile*, void*, void*)':
    src/osd/windows/winwork.c:204:63: error: cast from 'void*' to 'LONG {aka long int}' loses precision [-fpermissive]
      INT32 result = InterlockedCompareExchange((LPLONG)ptr, (LONG)exchange, (LONG)compare);
                                                                   ^
    src/osd/windows/winwork.c:204:79: error: cast from 'void*' to 'LONG {aka long int}' loses precision [-fpermissive]
      INT32 result = InterlockedCompareExchange((LPLONG)ptr, (LONG)exchange, (LONG)compare);
                                                                                   ^
    src/osd/windows/winwork.c:205:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      return (void *)result;
                     ^
    makefile:678: recipe for target 'obj/windows/mametgm/osd/windows/winwork.o' failed
    make: *** [obj/windows/mametgm/osd/windows/winwork.o] Error 1
     
  2. Looks like it doesn't like 64-bit pointers, try adding "PTR64=0" to your make command there.
     
  3. Unfortunately still receiving the same errors. Fortunately I found a download for shmupmametgm already compiled. Thanks anyway though!
     

Share This Page