Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Rebuilding in MSDEV

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

722 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