Discussion:
turn off optimization when compiling
(too old to reply)
Larry
2010-01-14 10:54:35 UTC
Permalink
Hi,

how can I turn off optimization when compiling a release version with VC++
EE?

thanks
David Lowndes
2010-01-14 11:30:10 UTC
Permalink
Post by Larry
how can I turn off optimization when compiling a release version with VC++
EE?
In your project's settings, under C/C++, Optimization - /Od

Dave
Nathan Mates
2010-01-14 15:19:08 UTC
Permalink
Post by Larry
how can I turn off optimization when compiling a release version with VC++
EE?
You can do it with the project properties -- right click on your
project (and not just a .cpp file) in the solution explorer, get
properties, then look under Configuration Properties -> C/C++ ->
Optimization. There is also #pragma optimize, which allows you to
change a subset of the options in the project properties on a
function-by-function level. See
http://msdn.microsoft.com/en-us/library/chh3fb0k%28VS.80%29.aspx

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Continue reading on narkive:
Loading...