Jump to content
  • Advertisement
Sign in to follow this  
tHomahwk

Creating and using Dlls

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

Currently, I'm using one BIG .exe file, but I've been wanting to seperate it out, into 2 .dlls and one .exe and eventually others for tools and such. The issue is that when I separate it into dlls, it does not seem to create the .lib file so that I can link everything properly. It compiles and creates the .dll file just fine however. I have tried comparing what I did, with the Free 3D graphics engine I'm using (Ogre 3D if your really interested), but couldn't find any differences except that I am compiling as a "Multi-threaded debug" with no Manifest file (I would expect these to not effect it at all). I had originally changed all the paths (and directories) from the default MSVC ones, but it wasn't creating the .lib file, so I deleted everything (minus the source files of course!) and left them at the default. Still it is not working. I tried both subsystems "Console" and "Windows", but neither of these seem to have an effect. I tried changing the paths and name of the export library through "Config->Linker->Adv. Properties->Import Libraries" Do you guys have any advice on what I might be doing wrong? MSVC 2005, C++. tHom

Share this post


Link to post
Share on other sites
Advertisement
I'm pretty sure that VS ships with a command line program called implib that you can run on a DLL to create an import library.

Share this post


Link to post
Share on other sites
Sounds like your missing the definition file that tells the compiler which functions to include in the .lib file. It's a very simple listing, most DLL tutorials explain it. I have most of my game engine in a .dll file, and i only have one function supported, that's a function to get version information, and to give me a reference to a class to do all the loading/rendering.

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!