Solved

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

Posted on 1997-05-02
1
160 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
1 Comment
 
LVL 4

Accepted Solution

by:
AVaulin earned 70 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now