HP OpenVMS Systemsask the wizard |
The Question is: Can you explain the following C compiler error? This should be valid. #define SIG_ENCRYPTO "\x45\x4e\x43\x52\x59\x50\x54\x4f" ..................................^ %CC-I-UNDEFESCAP, An undefined escape sequence was encountered; the backslash is being ignored. at line number 109 in file MYCP441$BASE:[HDR]PARMBLKO.H;1 #define SIG_ENCRYPTO "\x45\x4e\x43\x52\x59\x50\x54\x4f" ......................................^ %CC-I-UNDEFESCAP, An undefined escape sequence was encountered; the backslash is being ignored. at line number 109 in file MYCP441$BASE:[HDR]PARMBLKO.H;1 #define SIG_ENCRYPTO "\x45\x4e\x43\x52\x59\x50\x54\x4f" ..........................................^ %CC-I-UNDEFESCAP, An undefined escape sequence was encountered; the backslash is being ignored. at line number 109 in file MYCP441$BASE:[HDR]PARMBLKO.H;1 The Answer is :
The OpenVMS Wizard is unable to duplicate this error using the
following DEC C compiler configurations:
$ cc/ver nla0:
DEC C V5.5-002 on OpenVMS VAX V7.2
$ cc/ver nla0:
DEC C V6.0-001 on OpenVMS Alpha V7.2
When requesting assistance with similar programming questions, please
consider including a small reproducer, the version of the C compiler
in use, and the specific C compile command(s) used.
From the HELP library entry for C:
CC
Messages
UNDEFESCAP
Message An undefined escape sequence was encountered; the
backslash is being ignored.
Description The character or characters following a backslash do
not form a valid escape sequence. The compiler will
ignore the backslash.
User Action Correct the escape sequence.
|