
On Fri, Mar 28, 2008 at 11:33:52AM -0700, Jason Dusek wrote:
Thomas Schilling
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