Sorun dediğim şey ile alakalıymış evet
http://forum.dlang.org/thread/uzkrkzzcrjqabolvzfjv@forum.dlang.org adresinde tartışmışlar aynı konuyu.
Alıntı:
> 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!
Fakat ben bunu uyguladım ama hala sorun var :)
Alıntı:
> You shouldn't have to manually create a .def file. Try using
coffimplib (I think it's bundled with dmc?) instead of implib and
use it on libmysql.lib (coffimplib libmysql.lib _libmysql.lib,
back up the original libmysql.lib, replace the original with the
generated _libmysql.lib, and then link to it). Then create your
headers with extern(System). It seems that adding it manually
into the .def file is working for you, but it's a lot more effort
than needed.
Ve hemen altında bunu diyor def i otomatik olarak oluşturmakla alakalı denedim bunu da ama olmadı
Alıntı:
> C:\Users\TalhaZekeriya\Documents\GitHub\Script\source>coffimplib libmysql.lib li
bmysql.def -e
Error: missing archive signature
Hatasını verdi önerilerinizi ve yardımlarınızı bekliyorum :)
Zekeriya
--
[ Bu gönderi, http://ddili.org/forum'dan dönüştürülmüştür. ]