my email: mike dot micucci at roguewave dot com
We use the ant-cc task to compile sources on many different platforms, including MSVC 8.0 (Visual Studio 2005). The /GX flag was fixed to use /EHsc in the latest version, but the /GZ flag is still used when debug mode is turned on. This will cause the following warning on VC8:
[cc] 1 total files to be compiled.
[cc] cl /EHsc /c /nologo /Zi /Od /GZ /D_DEBUG /MDd /GR MyFile.cpp
Execute:Java13CommandLauncher: Executing 'cl' with arguments:
The ' characters around the executable and arguments are
not part of the command.
[cc] cl : Command line warning D9035 : option 'GZ' has been deprecated and will be removed in a future release
[cc] cl : Command line warning D9036 : use 'RTC1' instead of 'GZ'
These warnings can be problematic for users who wish 100% clean builds (no warnings). We also can't work around this because the MSVC compiler def automatically sets the /MD or /MDd flags based on the debug flag passed in, so we can't hardcode that to "false" and then just add the correct debug flags, because we'll get the incorrect MSVCRT lib linked in.
The /RTC1 and the /RTCs flags are available on VC7.1, so it may be possible to just use those, although it'd be really cool to get a msvc8 compiler definition in addition to the regular msvc definition, which has all the compatibile flags for vc8.