Solved

Rebuilding in MSDEV

Posted on 1997-03-27
3
272 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 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

832 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