Sign in to follow this  
Mussi

[.net] Library dependency problem.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this