admin管理员组

文章数量:1244411

I am trying to install sdl2-image with stack and I get the following error:

sdl2-image> error: Image.hsc:77:5: error: conflicting types for 'SDL_main'
sdl2-image> int main (void)
sdl2-image>     ^
sdl2-image> C:/Users/vedic/AppData/Local/Programs/stack/x86_64-windows/msys2-20240727/mingw64/include/SDL2/SDL_main.h:143:17: note: expanded from macro 'main'
sdl2-image> #define main    SDL_main
sdl2-image>                 ^
sdl2-image> C:/Users/vedic/AppData/Local/Programs/stack/x86_64-windows/msys2-20240727/mingw64/include/SDL2/SDL_main.h:155:29: note: previous declaration is here
sdl2-image> extern SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
sdl2-image>                             ^
sdl2-image> 1 error generated.
sdl2-image>

All solutions I have found so far involve editing the sdl2-image.cabal file, which I do not have access to.

本文标签: