I think I tracked it down.
I was using
/std:c++latest
changed to
/std:c++14
Seems to be OK
Update: Also OK with /std:c++17
James
Hi James:
This looks like a bug in /std:c++latest not translating PCHAR correctly.
I changed
PCHAR
to
char *
in the .cpp code and it compiled O.K. with /std:c++latest. It, in this case, being MrBCX's example of multiple local DATA sets using the READ$ function which contains two CONST PCHAR blocks.
I've been exploring the UTF-8 capabilities of BCX and at the moment am wondering if PUCHAR may be needed where there are char pointers, particularly, where there is byte examination occurring, as for example, in the BCX RemoveAll SUB. Anyway, this trope is drifting off topic so I will leave it at that, with a Happy New Year 2021 to all.