[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] The following code generates C that doesn't compile
From: |
David Korn |
Subject: |
[open-cobol-list] The following code generates C that doesn't compile |
Date: |
Mon Feb 23 14:47:03 2004 |
cc: address@hidden
Subject: The following code generates C that doesn't compile
--------
The following program compiles on both IBM MVS Cobol II and
with opencobol. However, the C code that opencobol generates
does not compile. Here is what I get.
In file included from prog13.c:9:
prog13.c.h:5: conflicting types for `b_WS_END_OF_WS'
prog13.c.h:4: previous declaration of `b_WS_END_OF_WS'
====================cut here===================================
IDENTIFICATION DIVISION.
PROGRAM-ID. PROG13.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-END-OF-WS.
05 WS-END-OF-WS-1 PIC X(14) VALUE '********* END '.
05 WS-PROGRAM-ID PIC X(8) VALUE 'FUP2SM02'.
05 WS-END-OF-WS-2 PIC X(22)
VALUE 'WORKING STORAGE ******'.
01 WS-END-OF-WS.
05 WS-END-OF-WS-1 PIC X(16)
VALUE '*********** END '.
05 WS-PROGRAM-ID-2 PIC X(08)
VALUE 'FUP2SM02'.
05 WS-END-OF-WS-2 PIC X(24)
VALUE ' WORKING STORAGE *******'.
PROCEDURE DIVISION.
GOBACK.
====================cut here===================================
David Korn
address@hidden
- [open-cobol-list] The following code generates C that doesn't compile,
David Korn <=