Click to See Complete Forum and Search --> : compile warning?


May 3rd, 1999, 09:42 AM
Hi,

Can anyone explain this warning message which puzzels me so long.
//************************************************************
Compiling...
Command line warning D4002 : ignoring unknown option '/ZI'
Command line warning D4002 : ignoring unknown option '/GZ'
//*************************************************************

thanks for any explanation,

allison

May 3rd, 1999, 10:19 AM
It looks to me like a case issue. In VC++ the commandline is case sensitive
The switch /Zi means include debugging info. The other, /Gz, means use
standard calling convention.
If you are working in the IDE you can fix this by going to Project
and select settings... click on the C/C++ tab and make sure Category
is set to General. At the bottom of the dialog is commandline options.
Change /ZI to /Zi and /GZ to /Gz and click OK. Your done.

reply to: rscudder@bellatlantic.net

May 3rd, 1999, 10:31 AM
What your building could be comming from VC6.0. A Project that was compiled by VC6.0 and then recompiled with 5.0 would give this warning, go to your project settings and remove the options.