
#Conflicting types for findprimefactors code
stack-work\dist\7d103d30\build\SDL\Raw\Image_hsc_make.c failed (exit code 1)Ĭommand was: C:\Users\Ashley\AppData\Local\Programs\stack\x86_64-windows\ghc-8.4.3\lib/./mingw/bin\gcc.exe -c. In file included from C:/Users/Ashley/AppData/Local/Programs/stack/x86_64-windows/msys2- 20180531/mingw64/include/SDL2/SDL.h: 32: 0,įrom C:/Users/Ashley/AppData/Local/Programs/stack/x86_64-windows/msys2- 20180531/mingw64/include/SDL2/SDL_image.h: 27,Ĭ:/Users/Ashley/AppData/Local/Programs/stack/x86_64-windows/msys2- 20180531/mingw64/include/SDL2/SDL_main.h: 111: 17: error: conflicting types for 'SDL_main 'Ĭ:\Users\Ashley\AppData\Local\Temp\stack11840\sdl2-image- 2.0.0\Image.hsc: 73: 5: note: in expansion of macro 'main 'Ĭ:/Users/Ashley/AppData/Local/Programs/stack/x86_64-windows/msys2- 20180531/mingw64/include/SDL2/SDL_main.h: 117: 39: note: previous declaration of 'SDL_main ' was hereĮxtern C_LINKAGE SDLMAIN_DECLSPEC int SDL_main( int argc, char *argv) Ĭompiling. Preprocessing library for sdl2-image- 2.0.0. Logs have been written to: C:\Users\Ashley\Desktop\haskell-sdl2-examples-master\.stack-work\logs\sdl2-image- 2.0.0.log

2.0.1_ghc- 8.4.3.exe -builddir=.stack-work\dist\7d103d30 build -ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always "

While building custom Setup.hs for package sdl2-image- 2.0.0 using:Ĭ:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.
