implib - what it produces?
Bradley Smith
digitalmars-com at baysmith.com
Tue Nov 21 16:50:12 PST 2006
See http://www.digitalmars.com/ctg/implib.html
jcc7 wrote:
> == Quote from Thorn (th at inbox.ru)'s article
>> Hello, guys!
>> I program on D and start using DDBI. I've compiled library but I
>> cannot link my test project: it complains about missing functions (I
>> linked with odbc32.lib - very old library from digitalmars).
>> After this I tried to create my own import library thru "implib
>> \windows\system32\odbc32.dll", but I've got strange library -
>> instead of smth like "_DBConnect at 20" implib broduces clear names
>> like "DBConnect". Of course linker couldn't find functions. :(
>> Please, may be somebody can explain what a benefit to use implib and
>> second: how to link my ODBC programs?
>> Thanks!
>
> I like to use implib like this:
> implib odbc32.lib odbc32.def
> (where I provide a .def file)
>
> The trick, of course, would be to find a .def file.
>
> There are some available in the binding project at dsource, such as:
> http://www.dsource.org/projects/bindings/browser/trunk/def/odbc32.def
>
> But that might not have all of the definitions. You could also try using linkdef:
> http://www.dprogramming.com/linkdef.php
>
> Finally, I've attached a .def file that has many more definitions than the one in
> the bindings project. I expect it'll will work for you, but I can't test it for
> you (obviously).
>
> I think that Walter has made a tool available that helps with turning a .dll into
> a DMD-compatible .lib, but I don't recall the details.
>
More information about the Digitalmars-d
mailing list