1 error compiling...

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2006
Posts: 78
Reputation: gampalu is an unknown quantity at this point 
Solved Threads: 0
gampalu gampalu is offline Offline
Junior Poster in Training

1 error compiling...

 
0
  #1
Jul 14th, 2006
Hi I'm creating an application and in DEBUG mode I have zero errors, but when I switch to RELEASE I have this error:

  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
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 232
Reputation: Dogtree is an unknown quantity at this point 
Solved Threads: 3
Dogtree's Avatar
Dogtree Dogtree is offline Offline
Posting Whiz in Training

Re: 1 error compiling...

 
0
  #2
Jul 14th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 78
Reputation: gampalu is an unknown quantity at this point 
Solved Threads: 0
gampalu gampalu is offline Offline
Junior Poster in Training

Re: 1 error compiling...

 
0
  #3
Jul 14th, 2006
Thanks
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: 1 error compiling...

 
0
  #4
Jul 14th, 2006
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!
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC