Solved

Rebuilding in MSDEV

Posted on 1997-03-27
3
275 Views
Last Modified: 2013-12-03
I am using MS Developer Studio/VC++ Version 4.2.  I have a master
project/workspace that has two sub-projects that each build an executable.
Both of these sub-projects depend on a third sub-project that builds a DLL.
 When I 'Rebuild All', Developer Studio unnecessarily rebuilds the third
sub-project twice -- once for each of the first two sub-projects that
include it.  It shoud rebuild it once for the first sub-project and
recognize that it's already been rebuilt when it goes to build the second
sub-project.  Unfortunately, the third sub-project is large, so rebuilds
are not trivial in the first place.  I have simplified the problem to only
three projects, but in reality, there is a whole tree of dependencies and
sub-projects.  This means that the project at the bottom of the tree gets
rebuilt six or eight times during a single rebuild.  Is there a patch to
Developer Studio to remedy this?  Is there a workaround to avoid this
problem?  I tried adding the third project as a sub-project for ONE of the
other sub-projects, then including the .LIB file in the linking inputs for
the other project.  This is bad, because on a normal build, the second
project won't recognize that a .cpp file in the third project has changed
and needs built.  Any suggestions?
0
Comment
Question by:dkgoblue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:isak
ID: 1334278
Why are you using Rebuild, isn't it enoth to just Build?
0
 

Author Comment

by:dkgoblue
ID: 1334279
I am doing a 'Rebuild' because Developer Studio does not always recognize changes in ALL header dependencies (especially when there are nested includes) and, when DLLs external to the project are changed (i.e. they are built by a different project), often the only solution to get the current project and the rebuilt DLL to work together is a rebuild.  These are two examples, but I'm sure there are others my coworkers have come accross.
0
 

Accepted Solution

by:
kyeck earned 200 total points
ID: 1334280
If your project(s) link with the dll, they are dependent on the library.  VC should detect when the library has changed (when you build the dll) and force the project(s) to relink.  If this doesn't occur, I would make sure that my library path in Options/Directories is set correctly and that I've updated the dependencies for all projects.

Hope that helps,
-Ken
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question