[Haskell-cafe] FFI: newbie linking problem

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed May 14 17:46:11 EDT 2008


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"
>       f_RfcUTF8ToSAPUC :: RfcBytePtr -> CUInt -> SapUCPtr -> Ptr

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

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list