Node:Building Library, Next:, Previous:Dynamic Linking, Up:Multiple Sources



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