Skip to main content
GameDev.net gamedev.net
🔒 Locked

C++Programming Error

Started by tototam May 12, 2004 at 8:07 AM 0 replies 2.1k views
Original Post
tototam
tototam
Command line error D2016 : ''/ZI'' and ''/O2'' command-line options are incompatible Error executing cl.exe. My compiler setting is : /nologo /MLd /W3 /Gm /GX /ZI /O2 /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"Debug/GAME3.pch" /Yu"stdafx.h" /Fo"Debug/" How can I fix this error? tototam
tototam
nonpop
nonpop
/ZI produces debugging information and /O2 optimizes the code. It makes no sense putting unnecessary (debug) data to optimized code or to optimize immature code. The solution: Don''t use them at the same time. Use /ZI for the debug version and /O2 for the release version.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.