On Wed, May 24, 2006 at 05:31:22PM +0100, Neil Mitchell wrote: > Having run a new compilation on WinHugs libraries I get the following > messages: > > ..\..\hugsdir\packages\Win32\Graphics\Win32\GDI\HDC.c: In function > `hugsprim_SelectObject_34': > ..\..\hugsdir\packages\Win32\Graphics\Win32\GDI\HDC.c:121: warning: > assignment makes integer from pointer without a cast
No idea. > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c: In function > `hugsprim_CreateDialogIndirectParamW_7': > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c:290: warning: > passing arg 4 of `CreateDialogIndirectParamW' from incompatible > pointer type > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c: In function > `hugsprim_CreateDialogParamW_6': > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c:313: warning: > passing arg 4 of `CreateDialogParamW' from incompatible pointer type > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c: In function > `hugsprim_DialogBoxIndirectParamW_2': > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c:422: warning: > passing arg 4 of `DialogBoxIndirectParamW' from incompatible pointer > type > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c: In function > `hugsprim_DialogBoxParamW_1': > ..\..\hugsdir\packages\Win32\Graphics\Win32\Dialogue.c:445: warning: > passing arg 4 of `DialogBoxParamW' from incompatible pointer type > ..\..\hugsdir\packages\Win32\Graphics\Win32\Misc.c: In function > `hugsprim_SetTimer_13': > ..\..\hugsdir\packages\Win32\Graphics\Win32\Misc.c:59: warning: > passing arg 4 of `SetTimer' from incompatible pointer type These are all FunPtr arguments. Hugs doesn't generate a complete C type signature for them, I think. > runhugs: Error occurred > ERROR "..\..\hugsdir\packages\Win32\System\Win32\Info.hs":26 - Syntax > error in import declaration (unexpected comma) > > I guess the warnings should be fixed anyway. > > The final error is on the following line: > import Foreign ( Storable(sizeOf, alignment, peekByteOff, pokeByteOff, > peek, poke), > , Ptr, alloca ) > > One two many comma's, I guess the CPP has had an effect here. No, that's just my mistake. Unfortunately GHC didn't mind. > As for System.Win32.Types, the folder > hugsdir\packages\Win32\System\Win32 has Types.hs but no Types.c, it > doesn't appear in any of the build logs. I'm not sure where it should > come from, but it doesn't appear to get there. The Cabal build should invoke ffihugs on System.Win32.Types (add --verbose to check), and this should generate Types.c and Types.dll. _______________________________________________ Hugs-Bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/hugs-bugs
