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
Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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 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 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…

766 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