[Python-Dev] Expat vs Windows

Tim Peters tim.one@comcast.net
Wed, 13 Feb 2002 03:15:08 -0500


[Martin v. Loewis]
> That's because the VERSION define in the debug build read
>
>  /D VERSION="1.95.2"
>
> whereas MSVC had wanted it as
>
>  /D VERSION=\"1.95.2\"
>
> I still fail to see the rationale for requiring the backslashes there,

I expect it's the same as under most Unix shells:  the cmdline processor
chews up unescaped quotes, so if you want quotes to survive in what's passed
to argv, you have to escape them.

> or why I have to change every setting twice on Windows (which I forgot
> in this case);

You don't, if you first select "Multiple Configurations ... " from the
"Settings for:" dropdown list.  That controls which configuration(s) your
changes apply to, so if you leave it at, e.g., "Win32 Release", you're
explicitly instructing it to apply changes only to the Release build.

> in any case, I moved the VERSION setting into expat.h, so this problem
> should be gone now.

Thank you!  I won't get to try it until tomorrow night; maybe the linker
warnings will vanish by then too ...