This is less programming and more IDE-MSVCBuild-Specific.
Does anyone know if it’s possible to stop visual studio from linking an
executable if any of the OBJ’s failed building?
I like that VS will keep building even if there’s errors, but it sucks
that it then tries to link (which then fails, and leaves you with no
Just curious if anyone knows of a way around that.
Please log in or register to post a reply.
Hmm. I’m not sure why you’re experiencing for that, but for me, VS (7.1)
doesn’t try to link if there was a compile error, and the executable is
not overwritten in that case.
I’m quite sure that neither of VS6.0, VS7.0 or VS7.1 would normaly cause
this behaviour. What they DO, is they continue building with the next
project in the solution if one fails. If these projects depend on each
other, the final linkage may fail, resulting in the executable being
Sorry, that’s what I meant. The final linkage fails.
I’m sorry I don’t know then. But I would be glad to know how to abort
the build completelly as soon as an error occurs, too.
It would probably be possible using macros, as for every build error a
task gets added to the task list (which can be monitored by macros)