Re: [Haskell-cafe] FFI: newbie linking problem

2008-05-15 Thread Olivier Boudry
Hi all, I found a solution to my linking problem, but it's a bit scary and I'm wondering if there is a simpler way to do this: The solution comes from the following article: http://www.emmestech.com/moron_guides/moron1.html To get ghc to link my dll properly I had to do the following: 1.

Re: [Haskell-cafe] FFI: newbie linking problem

2008-05-14 Thread Bulat Ziganshin
Hello Olivier, Thursday, May 15, 2008, 1:26:28 AM, you wrote:     RFC_RC _stdcall RfcUTF8ToSAPUC(const RFC_BYTE *utf8, unsigned utf8Length,  SAP_UC *sapuc,   unsigned *sapucSize, unsigned *resultLength, RFC_ERROR_INFO *info)     foreign import ccall unsafe sapnwrfc.h RfcUTF8ToSAPUC    

Re: [Haskell-cafe] FFI: newbie linking problem

2008-05-14 Thread Olivier Boudry
On Wed, May 14, 2008 at 5:46 PM, Bulat Ziganshin [EMAIL PROTECTED] wrote: use stdcall instead of ccall in Haskell too. afair, depending on calling conventions, different prefixes/suffixes are used when translating C function name into assembler (dll) name Oops, sorry I copied the wrong line