最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c - "conflicting types for 'SDL_main'" while trying to install the sdl2-image haskell module w

programmeradmin3浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论