The following tables list the general forms of the commands for compiling and linking Embedded SQL/COBOL applications on Sybase-supported platforms running the UNIX operating system.
Table 4-2 shows commands for compiling and linking Embedded SQL/COBOL applications using non-debug libraries.
Platform |
Command |
---|---|
Sun Solaris 2.x |
cob -x program.cbl -L $SYBASE/lib -lcobct -lct -lcs -ltcl \ -lcomn -lintl -ltli -lnsl -lm -o program |
HP 9000(8xx) |
cob -x program.cbl -L $SYBASE/lib -lcobct -lct -lcs -ltcl \ -lcomn -lintl -linsck -lBSD -lm -o program |
IBM RS/6000 |
cob -x program.cbl -L $SYBASE/lib -lcobct -lct -lcs -ltcl \ -lcomn -lintl -linsck -lm -o program |
SGI |
cob -x program.cbl -L $SYBASE/lib -lcobct -lct -lcs -ltcl \ -lcomn |
HP Tru64 UNIX |
cobol -ansi -names upper -x program.cbl -L $SYBASE/lib\ -lcobct -lct -lcs -lcomn -ltcl -lintl -lm -o program |
Table 4-3 shows commands for compiling and linking Embedded SQL/COBOL applications using debug libraries.
Platform |
Command |
---|---|
Sun Solaris 2.x |
cob -g -x program.cbl -L $SYBASE/devlib -lcobct -lct -lcs \ -lcomn -ltcl -lintl -ltli -lnsl -lm -o program |
HP 9000(8xx) |
cob -g -x program.cbl -L $SYBASE/devlib -lcobct -lct -lcs \ -ltcl -lcomn -lintl -linsck -lm -o program |
IBM RS/6000 |
cob -g -x program.cbl -L $SYBASE/devlib -lcobct -lct -lcs \ -ltcl -lcomn -lintl -linsck -lm -o program |
HP Tru64 UNIX |
cobol -ansi -names upper -x program.cbl -L$SYBASE/devlib \ -lcobct -lct -lcs -lcomn -ltcl -lintl -lm -o program |