Jump to content


Stopping a failed build from linking in DevEnv?


5 replies to this topic

#1 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 14 July 2006 - 10:46 PM

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.

Cheers.

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5311 posts
  • LocationSanta Clara, CA

Posted 14 July 2006 - 11:02 PM

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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 pater

    Valued Member

  • Members
  • PipPipPip
  • 117 posts

Posted 15 July 2006 - 06:03 AM

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.

#4 eddie

    Senior Member

  • Members
  • PipPipPipPip
  • 751 posts

Posted 15 July 2006 - 04:25 PM

Sorry, that's what I meant. The final linkage fails.

#5 pater

    Valued Member

  • Members
  • PipPipPip
  • 117 posts

Posted 15 July 2006 - 06:59 PM

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.

#6 .oisyn

    DevMaster Staff

  • Moderators
  • 1842 posts

Posted 16 July 2006 - 01:04 AM

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)
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users