Jump to content
  • Advertisement
Sign in to follow this  
databandit

.lib files

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

Hi, I'm making a game engine . . . and Im stuck in a place, how do you make a .lib and a .dll file work? (download Irrlicht: irrlicht.sourceforge.net to know what i mean) I'd appreciate any kind of help. Cheers, Zubair [Edited by - databandit on September 27, 2004 11:54:41 AM]

Share this post


Link to post
Share on other sites
Advertisement
Hi databandit,

can you give us more information ? what compiler do you use (and what version) ? what are you compilation settings and so on...

(another answer: can you say 'let this dll work' ? Apparently, you succedeed to create light this way :D)

Regards,

Share this post


Link to post
Share on other sites
Then, if you want to create a DLL you have to choose to create "Win32 dynamic library" project. This will generate the correct DSP file. When you will link your .obj files together, the linker will output a .dll file, a .lib file and a .exp file.

If you want to create a static library, then you'll have to select the "Win32 static library" project - AFAIK you won't be able to do that if you have a student version of VC6.

Regards,

Share this post


Link to post
Share on other sites
sorry . . . that was not my question . . . .it was how do you use functions from a .lib and .dll files?

i know how to make them


sorry for the confusion

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
To use them link the the static lib that comes with the engine and put the engine's dll(s) in the directory of your program. You'll be able to call the functions like any other using this method of linking.

Using DLLs only gets more difficult when you explicatly load them using LoadLibrary().

In .NET go to Project -> Properties -> Librarian and enter the name of the .lib you want to link to. I can't remember exactly how to do it in VC 6.0. You will also need to set the compilers directories up so it looks for static libraries in Irrlicht's lib folder.

Share this post


Link to post
Share on other sites
That was me. The way the forum posts your reply if you accidentally hit enter before you can type your user name and password is starting to really annoy me. [smile]

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!