gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

COB_PRE_LOAD


From: James K. Lowden
Subject: COB_PRE_LOAD
Date: Mon, 18 May 2020 19:27:12 -0400

Is there a static alternative to COB_PRE_LOAD?  

I would like to compile my Cobol program, linked to Cobol libraries,
without relying on any runtime configuration.  

In C, I can set my library search path with -Wl,-rpath, and name the
library with -l. 

With cobc, if I use -lfoo, the linker looks for libfoo.  (The
runtime error message says it can't find "-lfoo", with the flag, which
is IMO misleading.)  The advice in Appendix H of the Programmer's
Guide seems to be 

        export COB_LIBRARY_PATH=x
        export COB_PRE_LOAD=foo
        [run program]

N.B., the 3.0rc1 version of the Guide I'm looking at, from December
2019, has errors in the examples of how to use these variables.  

i would like the user to use the program without requiring runtime
configuration that is simply a by-product of the fact that the program
was written in Cobol.  

--jkl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]