Boost logo

Boost Users :

Subject: Re: [Boost-users] Using the /RTC option without specifying a debug runtime will lead to linker errors
From: Sleat, Ben (Ben.Sleat_at_[hidden])
Date: 2011-12-28 14:49:44


>>> "/RTC cannot be used with compiler optimizations "
>>> http://msdn.microsoft.com/en-us/library/8wtf2dfz(v=VS.100).aspx
>> Thanks for your reply Igor,
>> I'm aware of that /RTC cannot be used with optimizations and therefore
>> I disabled them (/Zd If I remember correctly),
> Well, if you don't mind to disable optiomizations, then what do you mean by saying "release build"?

Thanks again Igor,

As I'm sure you're aware a Debug build is much more than a Release build with the optimizations disabled.

I basically want a Release build but with the Stack Checking enabled (Temporarily whilst I investigate a stack corruption bug). If I do a debug build of my code then I'll have to copy over 100 other debug DLLs onto the test system to get it up and running.

>> however I still get the boost error.
> I believe, you have to compile with /MTd (or /MDd, if you link CRT dynamically). See "C/C++" --> "Code generation" page.

That's what I don't want.

This seems to be a restriction that Boost is imposing as I can safely enable the /RTCs option on Release builds of projects that don't use Boost.

So it sounds like there isn't a real workaround then?

Thanks
Ben
This email is from Verint Systems UK Ltd and is confidential.
If you have received it in error, please advise us and then delete the original and any attachments it may have contained.
Verint Systems UK Ltd does not accept any responsibility for viruses.
Verint Systems UK Ltd is a limited company registered in England and Wales at 241 Brooklands Road, Weybridge, Surrey KT13 0RH ,registration number 2602824.
VAT registration number GB566153238.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net