Solved

Visual C++: "minimal rebuild" seems not to work

Posted on 1997-05-02
1
193 Views
Last Modified: 2012-05-04
I am using Visual C++ 4.0 on W95. I am using the "minimal
rebuild" option and it seems not to work:

I have a file A.cpp which refers only to class A.
It includes file all.h which is consists only of includes
to other files. I change one of those other include
files which is the definition of a totally unrelated
class B.
According to the documentation, A.cpp should not recompile
even though it (indirectly) includes a modified .h file, because class A is not affected (with "minimal rebuild" ON,
of course).
The fact is it does recompile.
0
Comment
Question by:mco
[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
1 Comment
 
LVL 4

Accepted Solution

by:
AVaulin earned 70 total points
ID: 1163220
Be sure that there were no any changes in all .h files which were included in your all.h file. For example if all.h include files stdafx.h, a.h and b.h; a.cpp include file all.h and file b.h was changed, file a.cpp will be recompile. To use minimal rebuild correctly you must in file a.cpp include only stdafx.h and a.h.
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

617 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