Andy Walden <andy(_at_)enigma(_dot_)mtco(_dot_)com> writes:
I get the following error when trying to compile on Dunix 4.0e, any
thoughts? Please reply to me personally as I am not on the list. Thanks
for the time.
...
cc -c -O goodies.c
cc: Error: goodies.c, line 283: In this statement, "2" and "strcpy(...)"
cannot be added. (noadd)
{ p=2+strcpy(p,"()"); /* protect leading character */
-------------------------^
That C compiler is broken. Complain to the vendor and demand either a
fix or a refund.
In the meantime, you can patch the above line to read:
{ strcpy(p,"()");p+=2;
HOWEVER, if the compiler screwed up the first version, there's no
telling what else it'll munge. I'm not sure I would trust my e-mail to
resulting binary.
Philip Guenther