[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] how to compile
From: |
Keisuke Nishida |
Subject: |
Re: [open-cobol-list] how to compile |
Date: |
Mon Apr 14 11:54:10 2003 |
User-agent: |
Wanderlust/2.9.14 (Unchained Melody) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (UnebigoryĆmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI) |
At Mon, 14 Apr 2003 16:54:48 +0200,
Roger Cooreman wrote:
>
> Probably I'm to stupid to find the procedure, but where (in which
> library) does the preprocessor look to resolve 'copy' source statements?
> Is there an option to be passed to the preprocessor or is that library
> defined by default? In the latter case which one? Can there be more than
> one 'copy' library?
You can give compiler options "-I <copy-file-directory>" to cobc
as many as you want.
> How can i instruct the compilor to direct its output to a file instead
> of the standard output?
Do you mean the output of the preprocessor? If so, use the option -o
like this
$ cobc -E -o output.cob source.cob
or shell redirection as follows:
$ cobc -E source.cob > output.cob
If you mean the error output from the compiler, please use redirection:
$ cobc source.cob 2> error.log
I hope this helps.
Keisuke