View previous topic :: View next topic |
Author |
Message |
Laubi
Joined: 18 May 2007 Posts: 9
|
Posted: Fri May 18, 2007 6:56 am Post subject: Lib for MySQL |
|
|
I'm trying to use DDBI with my mysql database for a while but without much success so far..
Everything is a bit chaotic about D, different standard libraries and such things. I hope to be in the know soon..
I'm not sure about my problem, but when linking my application that uses MysqlDatabase I get a lot of linker problems, which I think have the same reason as they had in my old C times.. I need an additional lib file!
I googled a bit for this problem and found several hints. The most promising one is about coffimplib which I have to use to generate the lib from libmysql.dll but whenever I do that, I just get "Error: missing archive signature" which says nothing to me.. Google also doesn't tell me anything aobut that message.
I hope someone here can tell me how to get the mysql lib..
Thanks a lot! |
|
Back to top |
|
|
Laubi
Joined: 18 May 2007 Posts: 9
|
Posted: Fri May 18, 2007 7:41 am Post subject: |
|
|
I've tried to use implib instead of coffimplib and this worked fine but it looks like the generated lib doesn't work. Still get these messages
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_real_connect@32
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_errno@4
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_close@4
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_real_query@12
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_store_result@4
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_error@4
C:\dmd\bin\..\lib\dbi.lib(MysqlDatabase)
Error 42: Symbol Undefined _mysql_init@4
C:\dmd\bin\..\lib\dbi.lib(MysqlResult)
Error 42: Symbol Undefined _mysql_fetch_row@4
C:\dmd\bin\..\lib\dbi.lib(MysqlResult)
Error 42: Symbol Undefined _mysql_fetch_lengths@4
C:\dmd\bin\..\lib\dbi.lib(MysqlResult)
Error 42: Symbol Undefined _mysql_free_result@4
C:\dmd\bin\..\lib\dbi.lib(MysqlResult)
Error 42: Symbol Undefined _mysql_num_fields@4
C:\dmd\bin\..\lib\dbi.lib(MysqlResult)
Error 42: Symbol Undefined _mysql_fetch_fields@4
--- errorlevel 12 |
|
Back to top |
|
|
Laubi
Joined: 18 May 2007 Posts: 9
|
Posted: Fri May 18, 2007 7:49 am Post subject: |
|
|
I got it!
According to http://www.steinmole.de/d/ I should ignore the existing lib supplied by mysql but this time I didn't listen!
Code: | coffimplib libmysql.lib -f |
worked for me on the existing library!
using the generated lib by implib didn't work at all... |
|
Back to top |
|
|
|