Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

Creating a link lib when you've only the DLL available

$
0
0
In the good old days it was possible to create a link lib for a DLL, something like this:-

Code:

1) dumpbin /EXPORTS my.dll > my.def
2) Edit the generated file so that it only contained the function info with a line at the top saying EXPORTS
3) Run something called vcvars32.bat
4) Finish by running lib /def:my.def /machine:x64 /out:my.lib

But these days that produces fatal error LNK1118: syntax error in '0' statement

Back in the day, a .def file had this format (which still works):-

Code:

EXPORTS
AlphaTransparencyToText  @1
BoolToText    @2

But these days, dumpbin produces this (which no longer works and produces the error):-

Code:

EXPORTS
1    0 00015680 AlphaTransparencyToText
2    1 00015870 BoolToText

Anyone know if there's a fix available ??

Viewing all articles
Browse latest Browse all 3046

Trending Articles