Re[4]: [Haskell-cafe] Basic FFI with GHC

2007-09-13 Thread Bulat Ziganshin
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

RE: Re[2]: [Haskell-cafe] Basic FFI with GHC

2007-09-13 Thread Simon Peyton-Jones
| > 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

Re[2]: [Haskell-cafe] Basic FFI with GHC

2007-09-12 Thread Bulat Ziganshin
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

Re: [Haskell-cafe] Basic FFI with GHC

2007-09-12 Thread Ronald Guida
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

[Haskell-cafe] Basic FFI with GHC

2007-09-11 Thread Ronald Guida
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