[Haskell-cafe] compilation succeeds -- execution fails
Stefan O'Rear
stefanor at cox.net
Sat Mar 29 12:41:58 EDT 2008
On Fri, Mar 28, 2008 at 11:33:52AM -0700, Jason Dusek wrote:
> Thomas Schilling <nominolo at googlemail.com> wrote:
> > Did you try removing all .hi and .o files?
>
> Yes. I tried it again this morning, and I've got the same
> error -- same unknown symbol, &c.
>
> I don't have trouble with most Haskell programs on my Mac, so
> I assume it's the way I'm connecting to C that is the problem.
> I've pasted in the relevant code below my signature -- it
> seems plain enough to me, but I've not done much with foreign
> declarations.
>
> The `Ptr Char` declarations, for example, point to things
> which are actually C ints -- they are all valid Unicode code
> points, so I figure there's no harm done.
The only type that you are allowed to assume corresponds to a C int is
CInt, in the Foreign.C.Types module. This probably isn't the problem,
but it could make problems of its own on a 64-bit or otherwise weird
system.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080329/90a2ffe7/attachment.bin
More information about the Haskell-Cafe
mailing list