FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lib for MySQL

 
Post new topic   Reply to topic     Forum Index -> DDBI
View previous topic :: View next topic  
Author Message
Laubi



Joined: 18 May 2007
Posts: 9

PostPosted: Fri May 18, 2007 6:56 am    Post subject: Lib for MySQL Reply with quote

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.. Rolling Eyes

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
View user's profile Send private message
Laubi



Joined: 18 May 2007
Posts: 9

PostPosted: Fri May 18, 2007 7:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Laubi



Joined: 18 May 2007
Posts: 9

PostPosted: Fri May 18, 2007 7:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDBI All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group