Did you follow the instructions described in the WIN32 file?
On Sat, Dec 6, 2008 at 2:05 PM, sam lee [EMAIL PROTECTED] wrote:
Hi.
I am using Windows Vista.
I installed the following:
- ghc 6.8.3 (using official Windows binary installer)
- MinGW (from http://nuwen.net/mingw.html)
- SDL
Yes, with some modifications.
I used SDL-1.2.13, not SDL-1.2.12.
Also, my Include-Dirs has include\SDL, not include:
C:\Users\client\code\SDL-1.2.13\include\SDL
If I don't put include\SDL, I get errors like
Graphics\UI\SDL\General.hsc:1:17: SDL.h: No such file or directory
And I used the
Hi.
I am using Windows Vista.
I installed the following:
- ghc 6.8.3 (using official Windows binary installer)
- MinGW (from http://nuwen.net/mingw.html)
- SDL binding (from
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/SDL)
I am trying to compile the following program:
module
From the link you provided
(http://www.libsdl.org/faq.php?action=listentriescategory=4#48)
Q:I get Undefined reference to 'SDL_main' ...
A:Make sure that you are declaring main() as:
#include SDL.h
int main(int argc, char *argv[])
In particular notice that they want you to include
I can compile
http://darcs.haskell.org/~lemmih/hsSDL/hssdl/Examples/MacOSX/Test.hs
But I can't find the small Cabal file and c_main.c .
Does anyone have those files? I want to try if Test.hs links well on
windows platform.
I think the binding needs to not include SDLMain and instead do the