Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Rebuilding in MSDEV

Posted on 1997-03-27
3
Medium Priority
?
277 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
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 600 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
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…
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…
Loops Section Overview

824 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