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.
本文标签:
版权声明:本文标题:c - "conflicting types for 'SDL_main'" while trying to install the sdl2-image haskell module w 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740202483a2240469.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论