Solved

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

Posted on 1997-05-02
1
173 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

831 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