DDBI and MySQL
Max Samukha
samukha at voliacable.com.removethis
Fri Aug 29 01:54:48 PDT 2008
On Fri, 29 Aug 2008 01:07:35 -0700, "Chris R. Miller"
<lordSaurontheGreat at gmail.com> wrote:
>Don wrote:
>> Chris R. Miller wrote:
>>> I've been working to attempt to get DDBI to work with MySQL.
>>> Unfortunately I'm stuck with the Windows platform for lack of the
>>> impetus and know-how to get the compiler working elsewhere.
>>>
>>> I use a slightly modified version of DDBI to get SQLite to work. I
>>> don't think that would disrupt the workings of MySQL.
>>>
>>> Once I found the correct library file to use (buried in a large download
>>> of MySQL - the server, which was annoying) I found that the whole
>>> she-bang didn't work at all. It was all tied to a strange external
>>> declaration in imp_win.d, which apparently decided that on Windows the
>>> MySQL support is provided by extern(Windows) instead of extern(C).
>>
>> I hope you changed that to extern(System) ? It sounds like an old MySQL
>> file.
>
>No, it all links properly with extern(C).
>
MySQL API uses stdcall calling convention on Windows so
extern(Windows) in imp_win.d is correct. Here is an import library for
libmysql.dll that works for me
http://d-coding.com/downloads/libmysql.lib
More information about the Digitalmars-d
mailing list