Sign in to follow this  
The Reindeer Effect

Help: Circular Dependencies and Dynamic Libraries

Recommended Posts

Ok, so heres the deal. I have been trying to build this project (Visual C++) and I have successfully created a static library. Creating a dynamic library has proven to be much more difficult, especially since I cant particularly say that I know what I am doing. But basically, when I change my configuration settings to produce a dll, I get linker errors "unresolved external symbol" for a dependent project and the same goes for the other project. So what steps should I take to get a successful build and a working dll?

Share this post


Link to post
Share on other sites
libs dont' need to resolve their external links as tehy don't link in anything. That's done when the lib is consumed into a dll or exe.

That leads us to your dll problem. The DLL has to resolve its external links. So you'll need to link your dll with the appropriate libraires for the methods you call.

Cheers
Chris

Share this post


Link to post
Share on other sites
Hmm, I am still not sure exactly what that would entail ... I only have one library and that is the one that I have trouble creating. The external symbols are from other projects in the same visual studio solution.

To be more specific, here is what I am trying to compile. This compiles (static lib), and changing to dynamic results in the errors I mentioned.

pokereval.zip

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