Jump to content
  • Advertisement
Sign in to follow this  

Dependencies (C++)

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

I'm using Microsoft Visual C++ 6.0. I don't know if this is relevant to the question but just in case... From what I've understood there are two types of dependencies: The 'external Dedependencies' which are files the compiler will automatically add to my project by checking what I might include during preprocessing. And Project Dedependencies, which I have no clue about. The only thing I found out is that each project in the workspace can add each other project to it's 'Project Dependency List'. Please fix anything I've misunderstood till now. And 2 questions: 1) So what are Project Dedependencies? 2) What do the External Dedependencies help in? Besides showing them in the project's file list, they aren't compiled anyway till I request any compilation from the Program. Thanks in advance!

Share this post

Link to post
Share on other sites

So what are Project Dedependencies?

When one project relies on another.

Each project file produces a static library (*.lib)
These libraries could be linked by a project (As an
additional dependency), and used by the project (Project A)

Lets say a static library is produced from Project B, and
is linked with Project A. (Project A depends on Project B)

What would happen if the library file (produced from Project B) tries
to execute a function from Project A? This would not be possible, because
Project A uses project B (The library). Project B does not no anything
about Project A.

Because this is not possible, Visual studio puts some restrictions
on project dependencies.


What do the External Dedependencies help in?

They provide a list of additional library files (*.lib) for the linker
to link with your project. Any files the compilier automatically links
are linked based on your projects configuartion settings.

That is, Win32 programs rely on the Win32 API. The Win32 SDK library files
need to be linked with the program in order for Win32 function calls
to exist (The library files contain the actual Win32 SDK code)

You can easily take these dependencies out (or add your own)

Hope this helps!

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!