manju arumugam wrote:
> am new to this group, and i am new to this
> language, can i know about Installation procedure
> for Install cobol in linux platform.
Just download the source and build TC as follows.
./configure
make
make install (as su)
Set the envirioment variables as in the following example.
TCOB_OPTIONS_PATH=/usr/local/share/htcobol
TCOB_RTCONFIG_PATH=/usr/local/share/htcobol
Then compile any test programs found in the test.code directory, as in
the following example.
Using a make file:
make
Using the command line (Fixed source format):
htcobol -v -x -F sample-program.cob
BTW, if you download version 0.63, you may run into the follwing problem.
There is a macro 'define' problem with flex versions greater that 2.5.4.
This will cause TC to fail to compile with the following error message.
> ...
> gcc ... -c scan.c
> scan.c:1062: parse error before `YY_PROTO'
> ...
This is caused by the following macro 'define', as found in scan.l:61.
#define YY_DECL int yylex2 YY_PROTO((void))
The following code will fix the problem for all version (I hope) of flex.
#ifdef YY_USE_PROTOS
#define YY_DECL int yylex2 YY_PROTO((void))
#else
#define YY_PROTO(proto) (void)
#define YY_DECL int yylex2(void)
#endif
This is not an issue with the CVS version.
Hope this helps.
|