|
From: David E. <de...@us...> - 2005-08-05 02:50:17
|
John R. Culleton wrote: > I set the link options to link to a static library to ensure > greater portability. So to transport such a binary I need the > binary, the htcobolrc file, a path to the htcobolrc file, and > what else? The 'htcobolrc' file is only used by TC at compile time to create a binary from a COBOL source. So I'm confused as to what you mean by 'such a binary'. Are you trying to move the TC compiler and run-time, or just the TC compiled COBOL programs. If you are only moving the TC compiled programs, since you are using a static TC run-time, all you need are the COBOL program binary(s) and the run-time config file 'htrtconf'. Optional if different from default: export TCOB_RTCONFIG_PATH=/usr/local/share/htcobol On the other hand if you are trying to move (install) the TC compiler and run-time, it is best to build it and install it on the system where it will be used. ./configure ... make Change 'htcobolrc' and 'htrtconf' files as required. su ... make install exit Note that the Linux linker will use shared libraries by default, if available. To avoid this problem compile, and install, only the static version of the TC run-time . |