Hi,<br><br>I&#39;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>&gt; module MyWin32 where<br>&gt; <br>&gt; #include &lt;
windows.h&gt;<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&#39;
<br>C:/system/ghc/ghc-6.6/libHSrts.a(Main.o):Main.c:(.text+0x3f): undefined reference to `ZCMain_main_closure&#39;<br>collect2: ld returned 1 exit status<br><br>What am I missing?<br><br>Thanks<br><br>-John<br><br>