Next: Using Library, Previous: Dynamic Linking, Up: Multiple Sources
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