HP3000-L Archives

October 2013, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Tue, 15 Oct 2013 23:20:31 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (66 lines)
Yes, sounds like a superfluous USLINIT in the subprogram, or other
factors that don't combine the object code into one file at link time.

Jeff

On 10/15/2013 10:55 PM, Craig Lalley wrote:
> How did you link your program?
>
> -Craig
>
>
> Sent from my Verizon Wireless 4G LTE smartphone
>
> -------- Original message --------
> From: Paul Richards <[log in to unmask]> 
> Date:10/15/2013  7:14 PM  (GMT-08:00) 
> To: [log in to unmask] 
> Subject: Cobol: COBOL Calling sub-programs - unresolved externals 
>
> I'm getting to grips with COBOL on the HP3000 (I'm used to Micro Focus on Windows).
>
> A simple MAIN program calls a SUBPROGRAM and is designed to return. I'm getting the following messages:
>
> :mainprgx
> UNRESOLVED EXTERNALS: subprog  (LDRERR 512)
> Failed to locate the exported code symbol(s) for the imported code symbol(s)
> listed above. (LDRERR 522)
> Native mode loader message 522
> Unable to load program to be run. (CIERR 625)
>
> The programs are: mainprog - source, mainprgo - object, mainprgx - executable and subprog - source, subprogo - object, subprogx - executable
>
> In MAIN I'm CALLing "subprog":
>
> identification division.
> program-id. mainprog.
> procedure division.
> main-loop.
>    display "In MAIN program now ...."
>    call "subprog"
>    display "Back in MAIN program ..."
>    stop run.
>
> In SUB I have the following:
>
> identification division.
> program-id. subprog.
> procedure division.
> main-loop.
>    display "In SUB program now ...."
>    exit program. 
>
> All pretty basic stuff so I must be missing some simple HP/MPE requirement.
>
> Ideas welcome :-)
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2