Re: [Haskell-cafe] Unable to call function from DLL using FFI

2012-03-15 Thread rajendra prasad
: Re: [Haskell-cafe] Unable to call function from DLL using FFI To: haskell-cafe@haskell.org On 14/03/12 14:01, rajendra prasad wrote: My c++ code(HelloWorld.cpp) looks like this: Try adding extern C { ... } to use the C ABI instead of a C++ ABI (which usually features symbol name mangling

[Haskell-cafe] Unable to call function from DLL using FFI

2012-03-14 Thread rajendra prasad
Hi, I am new to Haskell and I need to call a c function by loading dynamic link library in Haskell. I started with very simple code to create a dll in visual studio 2008 and then trying to load it in haskell. I am listing here the steps I follwed to achieve this: *Step 1: * My c++

Re: [Haskell-cafe] Unable to call function from DLL using FFI

2012-03-14 Thread Claude Heiland-Allen
On 14/03/12 14:01, rajendra prasad wrote: My c++ code(HelloWorld.cpp) looks like this: Try adding extern C { ... } to use the C ABI instead of a C++ ABI (which usually features symbol name mangling to add type information, among other things). (This may not solve the entire problem, but is