VIPIN CHAND DURGAPAL wrote:
Hi,
The below line is from a cobol program.

01 LINE-HDR.
05 FILLER PIC X(132) VALUE '---------------- ----
- '------ --------- -------- ----------- --------------------
- ' ------------------- -------------------'.

Before giving our cobol program to procobol compiler, we are giving it C preprocessor to do the required macro substituion if any in the
program.

The preprocessor we are using is 'cpp' on redhat linux 7.1.
The above sample lines represents a continuation line as supported
by cobol.
The C preprocessor while preprocessing this line of code is giving an error saying "missing terminating ' character"
"possible start of unterminated string literal"
"C Pre Processor Error "
That's not the way to continue a line in C. Ypu need a COBOL
preprocessor :) CPP will folow, and expect the syntax for C,
C++ and Objective C.

Are their any compilation parameters in order to remove these
errors.
Writ a version that undersatands COBOL's lexical rules.
If you check 'man cpp' you seen it mentions that '
is expected to introduce character constants, not
be part of a line continuation.

	-Thomas



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to