Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

SirKnight

creating both a dll and lib

This topic is 5476 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

Just wondering if it''s possible to, in Visual Studio .NET, to have a project that when I compile, it makes not only a dll but a lib? Like it only compiles the code once but does a link for the dll and a link to make the lib. I have a program that needs this code as a dll, but a different project (which compiles to a dll) that also needs this code but as an lib. -SirKnight

Share this post


Link to post
Share on other sites
Advertisement
I've not used VC.NET but in VC6 if you create a DLL project when you build that project the compiler automatically creates a .lib along with the .dll which you link to in projects which will need the .dll

[edited by - Spudder on October 23, 2003 2:02:08 PM]

Share this post


Link to post
Share on other sites
Yes, but it''s a different kind of LIB. It''s an "import library", which contains just enough code to defer execution to the DLL. In contrast, when you build a static library, that LIB contains all the code needed for the functionality of the library.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites

  • 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!