Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DEC COBOL - compiler libraries

1 view
Skip to first unread message

Lindsay Smith

unread,
Jul 10, 1997, 3:00:00 AM7/10/97
to

Our CC have just installed DEC COBOL on a DEC Alpha system (DEC COBOL
Compiler Driver V2.4-863). We have previously been using MicroFocus on a
HP machine but have now been changed over to the above. Our experience
with DEC COBOL is a bit 'light on', at the moment I am having a problem
compiling (actually during link) due to a missing library file?.

Given a simple program:

identification division.
program-id. test1.
author. lindsay
date-written. Jan 1997.
date-compiled.

environment division.

input-output section.
file-control.

data division.
file section.

working-storage section.


procedure division.
000-main.
Display 'Testing'.
stop run.


If I try to compile this source I get the following result:

> cobol -ansi basic.cbl
ld:
Can't locate file for: -lsort
cobol: Severe: Failed while trying to link

If I compile to just the object file, all is fine:

> cobol -ansi -c basic.cbl
> ls
basic.cbl basic.o
>

The compiler is based in /usr/lib/cmplrs in two subdirectories:
- the cobol (cobol_240) subdirectory containing the compiler which a
symbolic link from /usr/bin/cobol points to, and
- the cobolrtl (cobolrtl_240) which is presumably the cobol runtime system
containing some libraries but not this sort one. It does contain:
cob_msg.cat libcob.a libcob.so libisam_stub.a
libtps_stub.a

A complete scan of the file system failed to reveal any library file of
the name sort (although presumably it may be in some other library of a
different name). Can anyone help?

Lindsay.
---------------------------------------------------------------------------
--------
Lindsay Smith, Computing Lecturer, Monash University
Gippsland School of Computing & Information Technology
Switchback Rd, Churchill, Victoria, AUSTRALIA 3842
Phone: +61 51 226669 Fax: +61 51 226842
Email: Lindsa...@fcit.monash.edu.au
GSCIT Home Page: http://www-gscit.fcit.monash.edu.au/

0 new messages