From: Chris <cbo...@mi...> - 2002-08-30 00:11:25
|
It's been years and years since I really looked at assembler, but I found an oddity. I try to build my program and I get the following error: BuildWAtkTab.s: Assembler messages: BuildWAtkTab.s:35: Error: suffix or operands invalid for `mov' BuildWAtkTab.s:44: Error: suffix or operands invalid for `mov' I do a htcobol -S and look at the result and this is what I see: .Linite_main: leal main, %eax pushl %eax leal .Lend_pgm_main, %eax pushl %eax pushl $3 movl $ww_base0+4 #sec:0, %eax pushl %eax movl $w_base0+4, %eax pushl %eax movl $s_base0+4, %eax pushl %eax call cob_open addl $16, %esp pushl $3 movl $ww_base0+38 #sec:0, %eax pushl %eax movl $w_base0+20, %eax pushl %eax movl $s_base0+38, %eax pushl %eax call cob_open The as command seems to work fine once I remove the #sec:0 entries, but gcc fails: gcc -o BuildWAtkTab BuildWAtkTab.o -lhtcobol -lm BuildWAtkTab.o: In function `main': BuildWAtkTab.o(.text+0x4c): undefined reference to `ww_base0' BuildWAtkTab.o(.text+0x68): undefined reference to `ww_base0' /usr/local/lib/libhtcobol.a(fileio.o): In function `cob_open': fileio.o(.text+0x563): undefined reference to `__db185_open' fileio.o(.text+0x5d6): undefined reference to `__db185_open' /usr/local/lib/libhtcobol.a(fileio.o): In function `sort_open': fileio.o(.text+0x385f): undefined reference to `__db185_open' collect2: ld returned 1 exit status What's wrong? |