From: Hudson R. <hud...@so...> - 2002-08-30 01:41:10
|
Hi Chris, > 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? add the libraries -ldb, -ldl and -lhtcobol2 in link step. ex: gcc -o BuildWAtkTab BuildWAtkTab.o -lhtcobol -lhtcobol2 -lm -ldb -ldl Hope this helps. Hudson |