[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Linking Question
From: |
Keisuke Nishida |
Subject: |
Re: [open-cobol-list] Linking Question |
Date: |
Tue Apr 20 06:22:03 2004 |
Hi Michael,
> Is there a method to link a static C function library in an
> "runtime-pool" which is "visible" for the dynamic linked Cobol modules ?
> Do I have to build a dynamic C library ? And how can I register the C
> functions to the Cobol programs ?
Just link your C library with your main program:
$ cobc -c -fmain MAIN.CBL
$ cobc -o MAIN MAIN.o libsubr.so (or -lsubr)
Hope this helps.
Keisuke