www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - coffimplib error with libmysql.dll under windows

reply Tim Keating <Tim_member pathlink.com> writes:
I have been trying to convert the MySQL DLL on Windows to OMF format using
coffimplib so I can use it in D. When I run the tool, it invariably gives me an
error: "missing archive signature". I can't fathom what this means, and I can't
get the tool to give me any kind of meaningful output. Anyone have any thoughts
as to what I'm doing wrong here?

Thanks!
TK
Jun 29 2006
next sibling parent Phoenix <phoenix flareware.cz> writes:
Tim Keating napsal(a):
 I have been trying to convert the MySQL DLL on Windows to OMF format using
 coffimplib so I can use it in D. When I run the tool, it invariably gives me an
 error: "missing archive signature". I can't fathom what this means, and I can't
 get the tool to give me any kind of meaningful output. Anyone have any thoughts
 as to what I'm doing wrong here?
 
 Thanks!
 TK
 
 
dll isn't in OMF format, and cannot be converted. you meant converting import lib to OMF?
Jun 29 2006
prev sibling parent James Pelcis <jpelcis gmail.com> writes:
coffimplib is meant for Microsoft's .lib files, not a dll.  What you 
need to do is

implib /s libmysql.lib libmysql.dll

The /s is necessary for C linkage.

Tim Keating wrote:
 I have been trying to convert the MySQL DLL on Windows to OMF format using
 coffimplib so I can use it in D. When I run the tool, it invariably gives me an
 error: "missing archive signature". I can't fathom what this means, and I can't
 get the tool to give me any kind of meaningful output. Anyone have any thoughts
 as to what I'm doing wrong here?
 
 Thanks!
 TK
Jun 29 2006