eddie at July 14th, 2006 18:46 — #1
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 executable).
Just curious if anyone knows of a way around that.
reedbeta at July 14th, 2006 19:02 — #2
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.
pater at July 15th, 2006 02:03 — #3
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 deleted.
eddie at July 15th, 2006 12:25 — #4
Sorry, that's what I meant. The final linkage fails.
pater at July 15th, 2006 14:59 — #5
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.
oisyn at July 15th, 2006 21:04 — #6
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)