COB_PRE_LOAD

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

 



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




[Index of Archives]     [Gcc Help]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Info]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux