944,181 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3246
  • C++ RSS
Jul 14th, 2006
0

1 error compiling...

Expand Post »
Hi I'm creating an application and in DEBUG mode I have zero errors, but when I switch to RELEASE I have this error:

C++ Syntax (Toggle Plain Text)
  1. --------------------Configuration: ipfix - Win32 Release--------------------
  2. Compiling...
  3. Command line error D2016 : '/ZI' and '/O2' command-line options are incompatible
  4. Error executing cl.exe.

Can you help me please,

Thanks, Regards
Similar Threads
Reputation Points: 21
Solved Threads: 0
Junior Poster in Training
gampalu is offline Offline
78 posts
since Mar 2006
Jul 14th, 2006
0

Re: 1 error compiling...

It's just what the error says. You can't have that particular debugging switch active when optimizing for speed. Under your project settings, the general tab in C/C++, you can change Debug Information Format to disabled.
Reputation Points: 35
Solved Threads: 3
Posting Whiz in Training
Dogtree is offline Offline
232 posts
since May 2005
Jul 14th, 2006
0

Re: 1 error compiling...

Thanks
Reputation Points: 21
Solved Threads: 0
Junior Poster in Training
gampalu is offline Offline
78 posts
since Mar 2006
Jul 14th, 2006
0

Re: 1 error compiling...

Check your compiler optimisation switches in project properties or something (I havn't used VC++ ide ever but I guess they're in there somewhere)

If you look here:
http://msdn2.microsoft.com/en-us/library/fwkeyyhe.aspx

You will see that command line switch /ZI means include debugging symbols

/O2 means compile 'fast' code

They are obviously mutualy exclusive you can't compile lots of debug code in AND have fast code!
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: checking for Connect 4
Next Thread in C++ Forum Timeline: Dynamically Add Event Handler without using this pointer





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC