The error message is "error C2061: syntax error: identifier
'_DebugHeapTag'". It occurs when building the project's precompiled
header file.
Once I realized this was not simply a case of some oversight on my
part (e.g., the fopen "b" argument) or a known bug, I did build a ~10
line project focused on the problem. The error does not show up
there. It could be that I have 1 of the 100's of build properties set
differently in the test project than in the real project. If you can
suggest any for me to fiddle with, I will.
I would take the more general approach of cutting down the real
project until it was the minimum size that would produce the error
but that could take a while. The real project runs ~200,000 SLOC with
considerable interdependence among its many .h and .cpp files. If you
can suggest something that would reduce the effort significantly, I
will give it a try. Otherwise, I will simply use the C-style I/O
functions (which work now), thanks to you.