Jump to content
  • Advertisement
Sign in to follow this  
Mussi

[.net] Library dependency problem.

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

Hiya, I have this probelm with including libraries. I've got two DLLs that need each other, so DLL1 includes DLL2's .lib file, but DLL2 also needs DLL1 so DLL2 includes DLL1's .lib file. now the probelm is they both need each others .lib file but none of the DLLs can compile couse the lib files don't exist yet. How can I solve this problem?

Share this post


Link to post
Share on other sites
Advertisement
I guess you are using C++?

Sometime you can create a third fake (stub) lib (if it's not too much work).

On the other hand dependencies like this point out bad design and will keep on bugging you in the future.

Cheers

Share this post


Link to post
Share on other sites
Yeah I'm using C++, but I have no idea of how to desing it otherwise :S, keeping the multiple DLLs that is.

Share this post


Link to post
Share on other sites
Well there are two options: merge them to 1 DLL or pull out some of the code to a 3rd or even 4th one...

Cheers

Share this post


Link to post
Share on other sites
There is a solution for it! but I don't know exactly how to do it, could someone help me?

Here's the solution:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Mutual_Imports.asp

Share this post


Link to post
Share on other sites
You have to be more precise than "Help me!"

Washu: Perhaps this should be moved to a C++/Visual Studio forum?

Cheers

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!