visual studio compile rules

J

jchiller

All,

Does anyone know if there is a way to get Visual Studio to display the
reason it is compiling a file during a build? For example, I start a
build on Project A and Visual Studio determines it needs to compile
file xyz.cpp b/c the source file is newer then the object file. So
ideally the Output window would display something saying the source is
out of date or that a header file the source includes is newer then
the object file.

I have a project that seems to rebuild alot more then it should and
would like to know why. I would like a way examine the reasons why
Visual Studio compiles what it does during a build. Any suggestions
would be appreciated. Thanks in advance.
 
G

Gus McNaughton

I've just moved to 7.1 from 6.0 and had a project that would always re-link
no matter how up-to-date its dependents.
The problem was in "Additional Dependencies" where there was an entry
"OtherLib\Debug\OtherLib" instead of "OtherLib\Debug\OtherLib.lib". The
external references to this library were satisfied by another dependent
pulling in the correct file but a warning would have been nice.
Hope this helps
 
R

Rudy Ray Moore

Gus,

This interests me. Where is "Additional Dependencies"?

Thanks,

Rudy
 
R

Rudy Ray Moore

I found it:

Startup Project Properties
Linker
Input
Additional Dependencies
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top