I am trying to install an SDL image library for Haskell, a set of bindings for the original C library with the same name. I have already built and installed the SDL library and the corresponding Haskell package and put the files from the SDL image library into the directory in which the SDL was installed. Now, when I try to establish SDL image bindings, I get the following error:
$ runghc Setup.lhs configure Configuring SDL-image-0.6.1... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking for sdl-config... /usr/bin/sdl-config checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... .o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for IMG_Load in -lSDL_image... no configure: error: *** SDL_image lib not found! Get SDL_image from http:
Some quick googling told me that I should tell you exactly where to find the lib file, but I'm not sure how to do it. I tried using the gcc -l [directory] flag, but got the same result.
I am using MinGW on Win7x64. Thank you in advance for any help and apologize if I did not include enough information, I am not sure what is important, because I do not understand the problem very well.
source share