Hi,<br><br>I'm interested in writing accessing some Win32 functions not available from GHC.<br><br>I wrote this short little file and tried to compile:<br><br>mywin32.hsc<br>> module MyWin32 where<br>> <br>> #include <
windows.h><br><br>Then tried to compile it like this:<br><br># hsc2hs mywin32.hsc<br># ghc -fffi mywin32.hs<br>C:/system/ghc/ghc-6.6/libHSrts.a(Main.o):Main.c:(.text+0x1b): undefined reference to `__stginit_ZCMain'
<br>C:/system/ghc/ghc-6.6/libHSrts.a(Main.o):Main.c:(.text+0x3f): undefined reference to `ZCMain_main_closure'<br>collect2: ld returned 1 exit status<br><br>What am I missing?<br><br>Thanks<br><br>-John<br><br>