Cobol - Queres arrancar con Tinycobol?

 
Vista:
Imágen de perfil de SuperIndio
Val: 32
Ha mantenido su posición en Cobol (en relación al último mes)
Gráfica de Cobol

Queres arrancar con Tinycobol?

Publicado por SuperIndio (35 intervenciones) el 02/11/2018 16:06:32
Aqui un breve resumen de los que tenes que hacer

a) Bajar e Instalar Mingw32 por default dir C:\MinGW o C:\MinGW32 de ahora en delante %HOME%
b) bajar todos los paquetes TinyCobol
1. tinycobol-0.66-1.mingw.zip
2. bdb-1.85.mingw.zip
3. pdcurses-2.4.mingw.zip
4. vbisam-2.0.mingw.zip
c) Descomprimir todos dentro de %HOME% y te quedara una carpeta asi
%HOME%\Local y alli adentro todo lo concerniente a TinyCobol
d) Crear el directorio TCob dentro de %HOME% ==> %HOME%\Tcob\ en donde vamos a desarrollar o poner nuestros ejemplos .cob
e) Crear el directorio Copy dentro de %HOME%\Tcob\ ==> %HOME%\Tcob\Copy\ en donde vamos a desarrollar o poner nuestros COPYS
f) Crear el Tcob32.bat y dejarlo dentro de %HOME%\Tcob\ con este contenido:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@ECHO OFF
SET HOME=C:\Mingw
SET TMP=C:\Temp
SET TEMP=C:\Temp
SET PATH=C:\Mingw\bin;C:\Mingw\share\htcobol;C:\Mingw\msys\1.0\bin;C:\Mingw\Local\bin
SET C_INCLUDE_PATH=C:\Mingw\include;C:\Mingw\include\db1;C:\Mingw\include\sys;C:\Mingw\mingw32\include;C:\Mingw\Local\include;C:\Mingw\Local\include\db1
SET CPP_INCLUDE_PATH=C:\Mingw\include;C:\Mingw\mingw32\include;C:\Mingw\msys\1.0\include;C:\Mingw\Local\include;C:\Mingw\Local\include\db1
SET CPLUS_INCLUDE_PATH=C:\Mingw\include;C:\Mingw\mingw32\include;C:\Mingw\msys\1.0\include;C:\Mingw\Local\include;C:\Mingw\Local\include\db1
SET LIBRARY_PATH=C:\Mingw\lib;C:\Mingw\lib\gcc\mingw32\4.8.1;C:\Mingw\msys\1.0\lib;C:\Mingw\mingw32\lib;C:\Mingw\Local\lib
Set LD_LIBRARY_PATH=%LIBRARY_PATH%
Set TH_INC=%C_INCLUDE_PATH%;%CPP_INCLUDE_PATH%;%CPLUS_INCLUDE_PATH%
Set COPYS=C:\Mingw\HCobol\Cpy
REM SET BISON_SIMPLE=C:\Mingw\usr\share\bison.simple
REM SET BISON_HAIRY=C:\Mingw\usr\share\bison.hairy
 
SET TCOB_OPTIONS_PATH=C:\Mingw\Local\share\htcobol
SET TCOB_RTCONFIG_PATH=C:\Mingw\Local\share\htcobol
C:\Mingw\bin\htcobol -x %1.cob -e%1 -L%LD_LIBRARY_PATH% -I%TH_INC% -I%COPYS% -v -free -Wall



g) compilar asi:
C:\Mingw\HCobol>tcob32 Test032 [sin el .cob]

IMPORTANTE 1 (INCLUDE Y LIBRARY )
dependiendo de que hayas instalado Mingw por default reguiere la variable LD_LIBRARY
por las dudas apunten dentro de ella todos las carpetas que tengan librerias (.a)
fijense y modifiquen bien las carpetas que es lo que tienen, yo tengo instalado varios paquetes por eso es largo:

1
2
3
4
5
6
7
SET C_INCLUDE_PATH=C:\Mingw\include;C:\Mingw\include\db1;C:\Mingw\include\sys;C:\Mingw\mingw32\include;C:\Mingw\Local\include;C:\Mingw\Local\include\db1
SET CPP_INCLUDE_PATH=C:\Mingw\include;C:\Mingw\mingw32\include;C:\Mingw\msys\1.0\include;C:\Mingw\Local\include;C:\Mingw\Local\include\db1
SET CPLUS_INCLUDE_PATH=C:\Mingw\include;C:\Mingw\mingw32\include;C:\Mingw\msys\1.0\include;C:\Mingw\Local\include;C:\Mingw\Local\include\db1
SET LIBRARY_PATH=C:\Mingw\lib;C:\Mingw\lib\gcc\mingw32\4.8.1;C:\Mingw\msys\1.0\lib;C:\Mingw\mingw32\lib;C:\Mingw\Local\lib
 
Set LD_LIBRARY_PATH=%LIBRARY_PATH%
Set TH_INC=%C_INCLUDE_PATH%;%CPP_INCLUDE_PATH%;%CPLUS_INCLUDE_PATH%

IMPORTANTE 2 (RECURSOS Y CONFIG DE HTCOBOL )
Si o Si el path que contenga los archivos htcobolrc y htrtconf
tiene que quedarn apuntados dentro de %PATH%
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder