I have a solution of C++ projects using VS 2005 SP1 on Windows XP SP2.
I am using project dependencies to keep the correct build order. But I
am having a problem where VS 2005 is unnecessarily re-building an
up-to-date project. That is, I build the entire solution, and
everything builds successfully. Then, when I build again (without
changing anything), there are a handful of projects that get re-linked.
How can I find out why VS is re-building an up-to-date project?
Thanks,
Phil
Hi Phil,
We need to perform more research on this issue . We will reply here as soon
as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding,
Best regards,
Wen Yuan
Hi Phil,
Thanks very much for your waiting.
I have consulted with product team on this issue. The suggest from our
product team is that, VS executes a build step (link, in your case) when a
timestamp check shows that the tool inputs are more recent than its
outputs.
Would you please send me your project if this is possible for you? I will
try to reproduce issue on my side and trouble-shooting for you. (My alias
is v-wywang@microsoft.com)
If this is not possible for you, we suggest you may, after a successful
build, check one of the project which rebuilds and what inputs it has
(probably all .obj's .manifests, etc) and see what seems to be more
up-to-date than the outputs of the linker. That should show you which file
is the culprit. It's easier said than done, though. This is probably
something that will take many hours of investigation.
In the future, there will be some tools that help you diagnose these sorts
of problems. But, unfortunately, for now, I'm afraid we'll need to do it
manually.
By the way, If you have any more concerns on it, please feel free to post
here.
Hope this helps,
Sincerely
Wen Yuan
pwm - 14 Mar 2007 14:20 GMT
> I have consulted with product team on this issue. The suggest from our
> product team is that, VS executes a build step (link, in your case) when a
> timestamp check shows that the tool inputs are more recent than its
> outputs.
There is something else going on. All inputs are checked out from
source code control and have a timestamp in the past. I build and
everything is successful. I build again, and a project re-links for no
apparent reason. All inputs have timestamps later than the generated
product.
And, no, it is not possible for me to send my project to you. Even if I
could, you would not have the necessary external libraries to build it.
Is there anything that can be done to diagnose and fix this problem
short of sending my entire solution of 112 projects to you?
Phil
WenYuan Wang - 15 Mar 2007 13:28 GMT
Hi Phil
Thanks for your reply.
If it is not possible for you to send the entire solution, you may specify
/VERBOSE option to the linker page, and select "Clean", "Rebuild" entire
project. The linker will emit all the details of its linking process in the
"Output" window. After that, we can perform further analysis on these
details in the output.
1. Open the project's Property Pages dialog box.
2. Click the Linker folder.
3. Click the Command Line property page.
4. Type the "/VERBOSE" into the Additional Options box.
http://msdn2.microsoft.com/en-us/library/wdsk6as6(vs.80).aspx
[/VERBOSE (Print Progress Messages) ]
If you have any more concerns on it, please feel free to post here. We are
glad to assist you.
Have a great day,
Sincerely,
Wen Yuan
v-wywang@microsoft.com
WenYuan Wang - 19 Mar 2007 15:49 GMT
Hi Phil,
I haven't heard from you two days.
Have you resolved the issue?
Please feel free to update here if there is anything we can help with. I'm
glad to assist you.
Have a great day,
Sincerely,
Wen Yuan
pwm - 21 Mar 2007 01:20 GMT
> I haven't heard from you two days.
> Have you resolved the issue?
No, we have not really resolved the problem. But since we cannot send
you our code and you cannot provide further assistance or tools to
diagnose the problem, I gues we are at an impass.
Phil
WenYuan Wang - 22 Mar 2007 10:34 GMT
Hi Phil,
I will do more research and contact our product team these days. In order
to pass the information for you as soon as possible, would you mind
providing me your email address, or send me an e-mail. My alias is
v-wywang@microsoft.com.
After that, I can contact you directly if I have any information.
I'm looking forward to your email.
Best regards,
Wen Yuan
WenYuan Wang - 26 Mar 2007 13:54 GMT
Hi Phil,
Have you resolved the issue so far? This issue seems only occur on your
special project. I have contacted with product team and searched the bug
list. Because it's not possible for you to send me your whole project and
we cannot provide further analyse. I'm afraid this is very difficult to
trouble-shooting such issue so far. Would you please give me your email
address or just send me an e-mail (my alias is v-wywang@microsoft.com). So
that we can get some detailed information about the issue.
Have a great day,
Sincerely,
Wen Yuan