[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] problem with linking and execution
From: |
Keisuke Nishida |
Subject: |
Re: [open-cobol-list] problem with linking and execution |
Date: |
Mon Jun 10 18:47:01 2002 |
User-agent: |
Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (UnebigoryĆmae) APEL/10.3 Emacs/21.2 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Mon, 10 Jun 2002 13:24:32 -0600,
Richard A. Painter <address@hidden> wrote:
>
> i am running cobc 0.9.5.92
>
> the attached 2 cobol files: program2.cob calls program3.cob.
> however i can't get program2 to execute. here are the methods i have tried:
Static linking with 0.9.5.92 sucks. Could you try 0.9.5.93?
> 1. cobc -static -c PROGRAM3.cob
> cobc -static -c -m PROGRAM2.cob
> cobc -o program2 PROGRAM2.o PROGRAM3.o
You should put -m with PROGRAM3.cob. Or with 0.9.5.93,
you can compile them as follows:
cobc -c -static -main PROGRAM3.cob
cobc -c -static PROGRAM2.cob
cobc -o program2 PROGRAM2.o PROGRAM3.o
The `-main' flag indicates that the program has a main function.