Menu

#14 TinyCobol Compiler issue

closed
nobody
None
5
2011-11-05
2011-08-27
No

I have install TinyCobol compiler and I am trying to compile and link a very symple program.
Environment varialble are properly defined on WXP

Here's waht I got. Can you help ?

-------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Maurice>cd /d E:\Users\Maurice\CBTst\Cbl85\P01

E:\Users\Maurice\CBTst\Cbl85\P01>dir
Volume in drive E is Data
Volume Serial Number is 2086-E78E

Directory of E:\Users\Maurice\CBTst\Cbl85\P01

25/08/2011 16:27 <DIR> .
25/08/2011 16:27 <DIR> ..
21/08/2011 15:19 422 p1.cbl
21/08/2011 17:30 143 t1.cbl
2 File(s) 565 bytes
2 Dir(s) 17.038.028.800 bytes free

E:\Users\Maurice\CBTst\Cbl85\P01>htcobol -z -P -t t1.cbl file path:; base name:t1; extention:.cbl; Pre-processing 't1.cbl'
Pre-processing 't1.cbl' into 't1.i'
Output intermidiate file 't1.i'
Processing 't1.cbl'
Full include (copybooks) search path
'C:/mingw/local/share/htcobol/copybooks;;'
Output assembler file 't1.s'
Listing file 't1.listing.txt'
Generating assembler output file 't1.s' from input 't1.i'
Processing 't1.cbl'
Begining compile process ...
Compiler summary:
Lines compiled : 5
Number of warnings : 0
Number of errors found: 0
Writing listing tables ...
as.exe -o t1.o t1.s
Compiler assembly phase ... 'as.exe' is not recognized as an internal or external command, operable program or batch file.
return code = 1
Compiler return code 8

E:\Users\Maurice\CBTst\Cbl85\P01>

---------

Discussion

  • David Essex

    David Essex - 2011-11-05

    To create an Win32 binary file, TC (minGW edition) does require
    the GNU C compiler (GCC) and assembler (AS), which are found in
    MinGW [1, 2].

    Past release of MinGW contained all, including GCC ans AS as one single download.
    Newer versions of MinGW have been separated into several packages.
    This approach is confusing, even for the experienced user.

    Since TC does not require advanced C features, I would suggest down-loading an older version of MinGW [3], and win32api [4]. Optional is MSYS [5].

    Just fallow the instructions in the 'readme.mingw32.txt' file.

    Sample COBOL sources can be found in the 'tinycobol-0.66.src.zip'[5] file.
    To build just change to directory and type 'make'.

    1) http://www.mingw.org/
    2) http://sourceforge.net/projects/mingw/
    3) MinGW-3.1.0-1
    4) w32api-2.4
    5) MSYS-1.0.7-i686-2
    6) tinycobol-0.66.src.zip

     
  • David Essex

    David Essex - 2011-11-05
    • status: open --> closed
     

Log in to post a comment.