Jump to content
  • Advertisement
Sign in to follow this  
Andrew Russell

Create a .lib from a DLL (VC2005e) - SOLVED

This topic is 4613 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need a quick way of extract the exports of a DLL to a .lib file. Is there a way of doing this for (in?) MSVC 2005 Express? I know it's possible - BCB3 used to do this (necessary, because it's .lib format was different to Microsoft's). Indeed, I'm compiling some of my old code from the Borland era, and I back then I did it to get Borland-friendly library files. But since the I've lost the Microsoft versions of the library files - which I now must recreate (obviously, I still have the DLLs). Also - if 2005 express can't do it - I've got 2003 (standard and toolkit) available if they can. [Edited by - Andrew Russell on November 29, 2005 7:32:59 AM]

Share this post


Link to post
Share on other sites
Advertisement
using "lib /def:foo.dll" appears to do something useful (creates a .lib and .exp file for the DLL). The documentation is very sketchy about what this is actually doing - can anyone shed some light on this?

Share this post


Link to post
Share on other sites
OK, well it turns out that the "lib /def:foo.dll" command dosn't do anything useful (or I'm using it incorrectly). At least - I get unresolved externals, despite using the fancy new libraries it generates. Shame - it seemed promising.


Quote:
Original post by bakery2k1
Perhaps this will help. It looks like you need to (by hand) produce a .def file for the DLL, and then from that create the .lib.

Do you have any more information on how to go about this? From my (very) limited knowledge of .def files, they're just a list of functions right? Functions which I can eaisly see are missing from the unresolved-externals list?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!