gcc -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1 -D__printf__=__gnu_printf__ -D_WIN32_WINNT=0x0600 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -mthreads -march=native -O3 -pipe -DLIBXML_STATIC -std=c11 -fomit-frame-pointer -IC:/builds/ab/msys64/mingw64/include/opus -IC:/builds/ab/msys64/mingw64/include/opus -IC:/builds/ab/msys64/mingw64/include/libxml2 -LC:/builds/ab/local64/lib -mwindows -mwindows -Wl,--no-undefined -static-libgcc -Dmain=SDL_main -IC:/builds/ab/local64/include/SDL2 -c -o /tmp/ffconf.hcMpmlkL/test.o /tmp/ffconf.hcMpmlkL/test.c C:/builds/ab/msys64/tmp/ffconf.hcMpmlkL/test.c: In function 'check_SDL_Init': C:/builds/ab/msys64/tmp/ffconf.hcMpmlkL/test.c:3:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] long check_SDL_Init(void) { return (long) SDL_Init; } ^ In file included from C:/builds/ab/local64/include/SDL2/SDL.h:32:0, from C:/builds/ab/msys64/tmp/ffconf.hcMpmlkL/test.c:1: C:/builds/ab/msys64/tmp/ffconf.hcMpmlkL/test.c: At top level: C:/builds/ab/local64/include/SDL2/SDL_main.h:104:17: error: conflicting types for 'SDL_main' #define main SDL_main ^ C:/builds/ab/msys64/tmp/ffconf.hcMpmlkL/test.c:4:5: note: in expansion of macro 'main' int main(void) { int ret = 0; ^~~~ C:/builds/ab/local64/include/SDL2/SDL_main.h:110:31: note: previous declaration of 'SDL_main' was here extern C_LINKAGE DECLSPEC int SDL_main(int argc, char *argv[]); ^~~~~~~~