Skip to main content

How can I get my compiled objects to be created in a different directory?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Which compiler flag should I use in order to have the objects to be created in a directory other than the current one?

Resolution:

Use the -Ngnt flag then specify the file location for the output file.

cob -u -Ngnt="/tmp/testxx/tictac.gnt" tictac.cbl

This example causes tictac.gnt file to be written to the /tmp/testxx directory.

Old KB# 4522