Re: [Boost-bugs] [Boost C++ Libraries] #6695: config/auto_link.hpp #errors unnecessarily errors when mixing /RTC and release CRTs

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6695: config/auto_link.hpp #errors unnecessarily errors when mixing /RTC and release CRTs
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-08 18:21:17


#6695: config/auto_link.hpp #errors unnecessarily errors when mixing /RTC and
release CRTs
-------------------------------------------+--------------------------------
  Reporter: Ben Craig <ben.craig@…> | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: Boost 1.50.0 | Component: config
   Version: Boost 1.46.1 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------------------+--------------------------------
Changes (by johnmaddock):

  * status: new => closed
  * resolution: => wontfix

Comment:

 None the less, you're not supposed to mix /RTC with release builds, MSDN
 says:

 ''"If you compile your program at the command line using any of the /RTC
 compiler options, any pragma optimize instructions in your code will
 silently fail. This is because run-time error checks are not valid in a
 release (optimized) build.

 ''"You should use /RTC for development builds; /RTC should not be used for
 a retail build. /RTC cannot be used with compiler optimizations (/O
 Options (Optimize Code)). A program image built with /RTC will be slightly
 larger and slightly slower than an image built with /Od (up to 5 percent
 slower than an /Od build)."''

 I don't doubt that some libraries and programs link OK using this
 combination, but I've also seen linker errors because the release runtimes
 don't contain all the debugging functions that /RTC code may call - sorry
 don't recall the details right now.

 So my inclination is to continue to disallow this, and let folks that
 really want to try this to do so at their own risk by modifying the source
 locally.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6695#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC