Hello Simon,
Thursday, September 13, 2007, 2:12:18 PM, you wrote:
> http://www.haskell.org/haskellwiki/FFI_cook_book
> There's also a GHC page about the FFI here:
> http://haskell.org/haskellwiki/GHC/Using_the_FFI
this page, despite its name, is only about dealing with Visual C++ via
DL
| > So, after more searching on the internet and some RTFM, I think I
| > found my answer, and it seems to work, but I don't know if it's the
| > right answer to generalize from.
|
| i have added your recipe to http://www.haskell.org/haskellwiki/FFI_cook_book
Thank you Bulat.
There's also a GHC p
Hello Ronald,
Wednesday, September 12, 2007, 11:18:05 PM, you wrote:
> So, after more searching on the internet and some RTFM, I think I
> found my answer, and it seems to work, but I don't know if it's the
> right answer to generalize from.
i have added your recipe to http://www.haskell.org/has
Ronald Guida wrote:
> How do I create C-libraries that I can load into GHCi? I am trying to
> do some basic FFI, and it's not working.
So, after more searching on the internet and some RTFM, I think I
found my answer, and it seems to work, but I don't know if it's the
right answer to generalize
How do I create C-libraries that I can load into GHCi? I am trying to
do some basic FFI, and it's not working.
Here's the background. I created three files, foo.h, foo.cpp, and
test_foo.lhs. (source code below)
Note: I am using MinGW/Msys under Windows XP.
If I compile foo.cpp and then try to