MySQL

Mike Parker aldacron at gmail.com
Mon Jan 23 18:37:22 PST 2012


On 1/23/2012 11:29 AM, Mars wrote:
> On Sunday, 22 January 2012 at 23:23:23 UTC, Kapps wrote:
>> 2) Create the binding functions using extern(System).
>
> Oh man... that was the problem. The file I used was using extern(C).
> Thought that was okay, it's a C lib after all. Thank you!
>
> Mars

A number of libraries on Windows use a different calling convention. Any 
functions declared WINAPI or PASCAL in the C headers need to be declared 
either extern(Windows) or, if cross-platform, extern(System).


More information about the Digitalmars-d-learn mailing list