From: David E. <de...@us...> - 2007-12-07 07:06:38
|
Reg wrote: > Compilation worked for option -m but using option -x got:- > > # htcobol -x /TinyCat/DEGRABBER.COB > DEGRABBER.o: In function `DEGRABBER': > DEGRABBER.COB:(.text+0x662): > undefined reference to `tcob_read_next_seq' > DEGRABBER.COB:(.text+0xa31): > undefined reference to `tcob_write_idx' > DEGRABBER.COB:(.text+0xd40): > undefined reference to `tcob_read_next_seq' > collect2: ld returned 1 exit status > > These are references to index sequential read, write and read next. > Any ideas? This is a linkage problem. The module creation option '-m' would not produce any errors because the linkage is done at run time. For some reason, the above functions were not found in the TC RTL, or the TC library 'libhtcobol.a' was not found in the library paths. I suspect that the TC RT library 'libhtcobol.a' was not found. To confirm that the path is the problem, add the verbose option '-v' to the command line. Example: $htcobol -v -x t71202a.cob as -o t71202a.o t71202a.s gcc -o t71202a t71202a.o -L/usr/lib -lhtcobol -ldb1 -lncurses -ldl -lm Or you could run the commands individually. Example: $htcobol -v -c t71202a.cob as -o t71202a.o t71202a.s $gcc -o t71202a t71202a.o -L/usr/lib -lhtcobol -ldb1 -lncurses -ldl -lm Hope this helps. Cheers |