C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

nld $system.system.crtlmain testco testcobo -o testexe -obey
$system.system.libcobey -l zcobsrl
or
eld $system.system.ccplmain testco testcobo -o testexe
-l zcobdll
4. Run the program:
run testexe
Interfacing to Native COBOL 143