First file in C++ project always being rebuilt

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been running .NET 2003 for some time now. I have been working on
the same C++ project for about a year now. All of a sudden, the first
file in the project is being built every time I build the project. I
tried deleting all of the OBJ files. I removed and re-added the
offending file which moved it (temporarily) to the bottom of the list
and the next file in the list was being recompiled every time. When I
reopened the project, the original problem file moved to the top of the
list and went back to being rebuilt every time the project was built.

I tried cleaning the project.

Any other ideas what I can try? This is annoying.
 
Hello nospam,

Check the data/time of your file. Probably it differs from the current time

n> I have been running .NET 2003 for some time now. I have been working
n> on the same C++ project for about a year now. All of a sudden, the
n> first file in the project is being built every time I build the
n> project. I tried deleting all of the OBJ files. I removed and
n> re-added the offending file which moved it (temporarily) to the
n> bottom of the list and the next file in the list was being recompiled
n> every time. When I reopened the project, the original problem file
n> moved to the top of the list and went back to being rebuilt every
n> time the project was built.
n>
n> I tried cleaning the project.
n>
n> Any other ideas what I can try? This is annoying.
n>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Michael said:
Hello nospam,

Check the data/time of your file. Probably it differs from the current time

I should have mentioned that I tried that. I even purposely edited the
file and saved it. Besides it is always the first file in the project.
If I remove it from the project and add it again, it becomes the last
file in the list. The new first file in the list (second before the
removal) gets recompiled over and over.
 
We had similiar problems but in our case the solution was quite easy: the
first project was opened over a network drive / share and in the second case
it was located inside an encrypted folder.
 
Dr. Jochen Manns said:
We had similiar problems but in our case the solution was quite easy: the
first project was opened over a network drive / share and in the second case
it was located inside an encrypted folder.

No not the case here. And it is the first file in the project that is
being compiled. Not the first project in the solution. There is only
one project in the solution.
 
Back
Top