Next: , Previous: Dynamic Linking, Up: Multiple Sources


2.2.3 Building Library

You can build a shared library by combining multiple COBOL programs and even C routines:

     $ cobc -c subr1.cob
     $ cobc -c subr2.cob
     $ cc -c subr3.c
     $ cc -shared -o libsubrs.so subr1.o subr2.o subr3.o