Buenas, tengo este simple codigo
Código COBOL:
IDENTIFICATION DIVISION.
PROGRAM-ID. EJEMPLO.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 OPC PIC X.
PROCEDURE DIVISION.
PRINCIPAL.
PERFORM UNTIL OPC = 'S' or 's'
DISPLAY "[C]argar datos al archivo" LINE 01 COL 41
DISPLAY "[A]gregar datos al archivo"
DISPLAY "[V]er el archivo"
DISPLAY "[S]alir"
ACCEPT OPC
END-PERFORM.
STOP RUN.
Al querer ejecutarlo me aparecen estos errores:
Código:
IBM COBOL for Linux 1.1.0 compile started
End of compilation 1, program EJEMPLO, no statements flagged.
/usr/bin/ld: ejemplo.o: en la función `EJEMPLO':
/home/dariodr/COBOL/empleados/ejemplo.cbl:(.text+0xf1): referencia a `_Qln_extnd_reset' sin definir
/usr/bin/ld: /home/dariodr/COBOL/empleados/ejemplo.cbl:(.text+0xfb): referencia a `_Qln_extnd_line' sin definir
/usr/bin/ld: /home/dariodr/COBOL/empleados/ejemplo.cbl:(.text+0x108): referencia a `_Qln_extnd_col' sin definir
/usr/bin/ld: /home/dariodr/COBOL/empleados/ejemplo.cbl:(.text+0x152): referencia a `_Qln_extnd_dspdata' sin definir
/usr/bin/ld: /home/dariodr/COBOL/empleados/ejemplo.cbl:(.text+0x15a): referencia a `_Qln_extnd_put' sin definir
/usr/bin/ld: ejemplo.o:(.rodata+0x30): referencia a `_Qln_extnd_reset' sin definir
/usr/bin/ld: ejemplo.o:(.rodata+0x34): referencia a `_Qln_extnd_line' sin definir
/usr/bin/ld: ejemplo.o:(.rodata+0x38): referencia a `_Qln_extnd_col' sin definir
/usr/bin/ld: ejemplo.o:(.rodata+0x3c): referencia a `_Qln_extnd_dspdata' sin definir
/usr/bin/ld: ejemplo.o:(.rodata+0x40): referencia a `_Qln_extnd_put' sin definir
collect2: error: ld returned 1 exit status
Alguien sabe de que se trata.
PD: estoy usando el compilador COBOL para LINUX.