Hi,
it is mentioned in the user's guide,
http://haskell.org/ghc/docs/latest/users_guide/users_guide-5.html#glasgow-fo
reign-headers
Alternatively, you can use -optC-femit-extern-decls to have
ghc emit the proto of the function it assumes you're interfacing
to. (You may need a fairly recent CVS snapshot to get this one
to work, as there a couple of gcc bugs to contend with.)
--sigbjorn
> -----Original Message-----
> From: Alex Ferguson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 30, 1999 11:46 AM
> To: [EMAIL PROTECTED]
> Subject: _ccall_
>
>
>
> Hi all. Just started playing around with ccall, and while I managed
> to get my toy program to Do The Right Thing, I got a mildly alarming
> looking warning message from gcc, re: athe lack of an explicit type
> for the generated C call. I don't see anything about this in
> the users
> guide, either telling me not to worry about this, or specifying how
> to pacify it. If it's generating a type for the given function along
> the lines of the C type rules, is there any sort of provision
> for slurping
> in a .h, or equivalent, to provide a 'better' type?
>
> I realize there are more sophisticated Preferred Interfaces
> around these
> days, but what I'm up to ought to be simple enough to do in a single
> _ccall_: I think.
>
> Cheers,
> Alex.
>
>