Oracle rtsora

Da Emigar.
Jump to navigation Jump to search

Come relinkare rtsora con cobol microfocus consigli:

modificare il file

/usr/lib/cobol/cobopt

su HP Tru64 e su Linux aggiungere le seguenti righe:


-C nolist
-Bdynamic=cxx
-O
-Q "-rpath /app/oracle/product/10.2/db_1/lib:/usr/lib/cmplrs/cob/coblib"
-Q "-L/usr/shlib"

Qui un breve elenco dei parametri che si possono inserire:

10.2.5 cob Flags
The following flags can be used with the cob command to specify any action the system components
should take while creating an executable module and to determine the type of file output.
For full details on the effect of these flags, see the chapter Descriptions of cob Flags. 

cob Flag                 Function
-----------------------  ----------------------------------------------------------------------
  -A as_option           Pass as_option to Assembler (as)
  -a                     Compile for animation. This is the default
  -C directive           Pass syntax-check phase directive to the Compiler
  -CC cc_option          Pass cc_option to C compiler (cc)
  -c                     Compile no further than a linkable object module (.o)
  -d symb                Dynamically load symb
  -e epsym               Set initial entry point to epsym 
  -g                     Create debugging information
  -I symb                Include symb in executable module
  -i                     Compile to .int code for unlinked environment
  -k cobol-file          Recognize COBOL source file with non-standard filename extension
  -L dir                 Pass option to system linker, changing search algorithm and maintaining
                         relative ordering
  +L dir                 Pass option to system linker after all other options, changing search
                         algorithm
  -l lib                 Pass option to system linker, maintaining relative ordering
  +l lib                 Pass option to system linker after all other options
  -m symb=newsym         Map text symb onto newsym
  -N directive           Pass generate phase  directive to the Compiler
  -O                     Enable optimization
  -o filename            Specify output filename
  -P                     Produce COBOL compilation listing file
  -p                     Pass flag to C compiler to use profiling routines
  -Q ld_option or 
  -Q,1 ld_option or 
  -Q,2 ld_option         Pass ld_option to system linker (ld)
  -q                     Reserved for future use by us
  -t                     Creates multi-threading programs that use the multi-threading run-time
                         system
  -U                     Dynamically load unresolved symbols
  -u                     Compile to .gnt code for unlinked environment
  -V                     Report version number
  -v                     Set verbose mode
  -W err-level           Control error level for cob termination
  -X symb                Exclude text symb from the executable output file
  -x                     Process to system executable file
  -x,CC                  Process to system executable file including C++ support
  -y                     Process to a self-contained callable shared object. This should only be
                         used for creating NSAPI programs. See the chapter Building NSAPI Programs
                         in your Internet Applications book for details.
  -z                     Process to callable shared object
  -z,U                   Process to callable shared object and issue error if there are any
                         undefined symbols
  -z,CC                  Process to callable shared object including C++ support
  -z,U,CC                Process to callable shared object, including C++ support, and issue error
                         if there are any undefined symbols
  -Z                     Process to shared library
  -Z,CC                  Process to shared library, including C++ support

Any options that are not recognized are passed to the system linker (ld).
However, we recommend you use the -Q flag  to explicitly pass options to the linker.
Any linker flags that take parameters must be passed using the -Q flag. 
cob flags -c, -P and -U are binary global options (that is, they select features that can
potentially affect several of the input files). Any of these options can be turned off once
selected by appending a hyphen (-) to the option letter. This enables any global binary
options selected in the system $COBDIR/etc/cobopt file to be overridden.

Fonte: http://supportline.microfocus.com/documentation/books/sx2011sp1/cycobc.htm