Re: Incompatible command-line options
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Fri, 22 Jul 2005 16:32:09 -0500
Bjarne Nielsen wrote:
Hi all.
I'm trying to debug a release version of my app using VS2003. To be able to debug it, I have set optimization to disabled (/Od) and debug info to "...edit and continue" (/ZI).
When I try to compile it, the compiler complains
"cl : Command line error D2016 : '/O2' and '/ZI' command-line options are incompatible"
"/O2" means "maximze speed", but I have specifically set it to disabled. Is this a known issue in VS2003, or am I doing something wrong?
My actual problem is, that in the release version I cannot show my about box. It works fine in debug, no warnings nor errors, but nothing shows in release. I guess it for some reason returns from DoModal() like for example if there is a resource error, but the resource is fine. Any hints?
To find out if DoModal is failing in the release build you can send a text string containing the return value to the debugger output window by adding code that calls OutputDebugString. This will work even in the optimized release build.
Double-check that you don't have any necessary code inside ASSERT statements. ASSERT statements are not executed in the release build.
-- Scott McPhillips [VC++ MVP]
.
- Follow-Ups:
- Re: Incompatible command-line options
- From: Bjarne Nielsen
- Re: Incompatible command-line options
- References:
- Incompatible command-line options
- From: Bjarne Nielsen
- Incompatible command-line options
- Prev by Date: Re: CString hex value to CString decimal value
- Next by Date: Re: resource unavailable problem
- Previous by thread: Incompatible command-line options
- Next by thread: Re: Incompatible command-line options
- Index(es):
Relevant Pages
|