Solved

Visual Studio 2003 keeps rebuilding the entire solution

Posted on 2006-07-06
5
599 Views
Last Modified: 2008-01-09
Hello experts,

I'm developing a C++ project in Visual Studio 2003. The solution I have consists of four projects:
gui, console, core (static library) and xml (static library)

The dependencies are: ("->" = depends on)
gui, console -> core
core -> xml

Everything was going along without problems until, suddenly, the development enviroment started insisting on rebuilding the entire solution everytime I made the slightest change in any project. Actually I don't even have to make any changes, it wants me to rebuild anyway, picture the following scenario:

I want to run gui application (i have it marked as the startup project) so I press ctrl+F5, Visual Studio informs me that all projects needs to be rebuilt, I press OK, they're rebuilt and the gui application launches. If I then close the gui application and, without modifying anything, press ctrl+F5 again, it still says that everything has to be rebuilt!

I don't recall having changed anything in the settings for the project since this behaviour started appearing (other than maybe enabling RTTI).

Any suggestions?



0
Comment
Question by:henrikatwork
[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
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 17053063
1.Check to see if your application change any of the files in xml project.
2. When it rebuilds, it compiles file by file or just links to libraries?

0
 
LVL 1

Author Comment

by:henrikatwork
ID: 17053127
> 1.Check to see if your application change any of the files in xml project.
What do you mean ? that I would accidentally have fstream in my code that wrote the xml project directory? No, none of that.

> 2. When it rebuilds, it compiles file by file or just links to libraries?
It compiles every single file, yet the build log says this (for every project):

------ Build started: Project: core, Configuration: Debug Win32 ------
Compiling...
1.cpp
2.cpp
3.cpp
4.cpp
5.cpp
6.cpp
Generating Code...
Skipping... (no relevant changes detected)
-----

I should also point out that there only is 6 files in the project from the build-log above.
0
 
LVL 5

Accepted Solution

by:
bastibartel earned 125 total points
ID: 17053155
Check the file times and your system time.
If the sources are somehow newer than the current system time, it will always recompile

Sebastian
0
 
LVL 1

Author Comment

by:henrikatwork
ID: 17053204
Oh! I just remember that I played around with the system date on my computer when testing a expire-after-date "feature". I accidentally reset the current month to june!

Anyways, setting it back to july solved the problem.

Thanks a lot.
0
 
LVL 5

Expert Comment

by:bastibartel
ID: 17053277
Why only a B grade *sniff*
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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