Problem solved. :-)

I found that it was @4 suffix that was missing. With a libmysql.def file as below:

LIBRARY libmysql
EXETYPE NT
SUBSYSTEM WINDOWS
EXPORTS
        _mysql_init@4 = mysql_init

I was able to generate working libmysql.lib file with implib (with /system switch).

That, with changing from extern (C) to extern (System), removed the problematic issue.

Thank you for all your hints!

Reply via email to