From: Hudson R. <hud...@so...> - 2002-06-20 16:26:20
|
Hi all, I've had problems in link step: Script iniciado em Thu Jun 20 12:51:38 2002 hudson@darkstar:~/prj/tc/src/gui01$ make htcobol -g -D -c hello.cob gcc -o tcgui-run.o -c tcgui-run.c gcc -o hello hello.o tcgui-run.o -lhtcobol -lm -ltcl8.3 -ltk8.3 -L/usr/X11/lib -lX11 /usr/local/lib/libhtcobol.a(fileio.o): In function `cob_open': fileio.o(.text+0x5d7): undefined reference to `dbopen' fileio.o(.text+0x67e): undefined reference to `dbopen' /usr/local/lib/libhtcobol.a(fileio.o): In function `sort_open': fileio.o(.text+0x3b5f): undefined reference to `dbopen' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_init': scr_curses.o(.text+0x7): undefined reference to `initscr' scr_curses.o(.text+0xc): undefined reference to `noecho' scr_curses.o(.text+0x11): undefined reference to `cbreak' scr_curses.o(.text+0x1b): undefined reference to `stdscr' scr_curses.o(.text+0x21): undefined reference to `keypad' scr_curses.o(.text+0x2e): undefined reference to `stdscr' scr_curses.o(.text+0x34): undefined reference to `scrollok' scr_curses.o(.text+0x3c): undefined reference to `nonl' scr_curses.o(.text+0x41): undefined reference to `raw' scr_curses.o(.text+0x46): undefined reference to `noecho' scr_curses.o(.text+0x4b): undefined reference to `has_colors' scr_curses.o(.text+0x56): undefined reference to `start_color' scr_curses.o(.text+0x6a): undefined reference to `pair_content' scr_curses.o(.text+0x72): undefined reference to `stdscr' scr_curses.o(.text+0x89): undefined reference to `COLOR_PAIRS' scr_curses.o(.text+0x9e): undefined reference to `init_pair' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_finish': scr_curses.o(.text+0xc3): undefined reference to `isendwin' scr_curses.o(.text+0xce): undefined reference to `endwin' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_setchar': scr_curses.o(.text+0xfa): undefined reference to `stdscr' scr_curses.o(.text+0x100): undefined reference to `waddch' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_setyx': scr_curses.o(.text+0x146): undefined reference to `stdscr' scr_curses.o(.text+0x14c): undefined reference to `wmove' scr_curses.o(.text+0x155): undefined reference to `stdscr' scr_curses.o(.text+0x15e): undefined reference to `stdscr' scr_curses.o(.text+0x173): undefined reference to `stdscr' scr_curses.o(.text+0x17c): undefined reference to `stdscr' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_kbdstatus': scr_curses.o(.text+0x1e0): undefined reference to `stdscr' scr_curses.o(.text+0x1e6): undefined reference to `nodelay' scr_curses.o(.text+0x1f1): undefined reference to `stdscr' scr_curses.o(.text+0x1f7): undefined reference to `wgetch' scr_curses.o(.text+0x209): undefined reference to `stdscr' scr_curses.o(.text+0x20f): undefined reference to `nodelay' scr_curses.o(.text+0x228): undefined reference to `ungetch' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `set_colors': scr_curses.o(.text+0x327): undefined reference to `COLOR_PAIRS' scr_curses.o(.text+0x341): undefined reference to `pair_content' scr_curses.o(.text+0x38a): undefined reference to `init_pair' scr_curses.o(.text+0x39d): undefined reference to `COLOR_PAIRS' scr_curses.o(.text+0x3ae): undefined reference to `stdscr' scr_curses.o(.text+0x3b4): undefined reference to `wcolor_set' scr_curses.o(.text+0x3c6): undefined reference to `stdscr' scr_curses.o(.text+0x3cc): undefined reference to `wbkgdset' scr_curses.o(.text+0x3d6): undefined reference to `stdscr' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `set_atributes': scr_curses.o(.text+0x40f): undefined reference to `stdscr' scr_curses.o(.text+0x415): undefined reference to `wattr_on' scr_curses.o(.text+0x42b): undefined reference to `stdscr' scr_curses.o(.text+0x431): undefined reference to `wattr_off' scr_curses.o(.text+0x450): undefined reference to `stdscr' scr_curses.o(.text+0x456): undefined reference to `wattr_on' scr_curses.o(.text+0x46b): undefined reference to `stdscr' scr_curses.o(.text+0x471): undefined reference to `wattr_off' scr_curses.o(.text+0x490): undefined reference to `stdscr' scr_curses.o(.text+0x496): undefined reference to `wattr_on' scr_curses.o(.text+0x4ab): undefined reference to `stdscr' scr_curses.o(.text+0x4b1): undefined reference to `wattr_off' scr_curses.o(.text+0x4d0): undefined reference to `stdscr' scr_curses.o(.text+0x4d6): undefined reference to `wattr_on' scr_curses.o(.text+0x4eb): undefined reference to `stdscr' scr_curses.o(.text+0x4f1): undefined reference to `wattr_off' scr_curses.o(.text+0x510): undefined reference to `stdscr' scr_curses.o(.text+0x516): undefined reference to `wattr_on' scr_curses.o(.text+0x52b): undefined reference to `stdscr' scr_curses.o(.text+0x531): undefined reference to `wattr_off' scr_curses.o(.text+0x54b): undefined reference to `beep' scr_curses.o(.text+0x563): undefined reference to `stdscr' scr_curses.o(.text+0x569): undefined reference to `wclear' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `_DisplayField': scr_curses.o(.text+0x62a): undefined reference to `stdscr' scr_curses.o(.text+0x630): undefined reference to `wmove' scr_curses.o(.text+0x63b): undefined reference to `stdscr' scr_curses.o(.text+0x641): undefined reference to `wclrtoeol' scr_curses.o(.text+0x677): undefined reference to `stdscr' scr_curses.o(.text+0x67d): undefined reference to `wclrtoeol' scr_curses.o(.text+0x698): undefined reference to `stdscr' scr_curses.o(.text+0x69e): undefined reference to `wclrtobot' scr_curses.o(.text+0x6b8): undefined reference to `beep' scr_curses.o(.text+0x6d0): undefined reference to `stdscr' scr_curses.o(.text+0x6d6): undefined reference to `wclear' scr_curses.o(.text+0x740): undefined reference to `stdscr' scr_curses.o(.text+0x746): undefined reference to `waddnstr' scr_curses.o(.text+0x812): undefined reference to `stdscr' scr_curses.o(.text+0x818): undefined reference to `waddnstr' scr_curses.o(.text+0x823): undefined reference to `stdscr' scr_curses.o(.text+0x829): undefined reference to `wrefresh' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `_DisplayForAccept': scr_curses.o(.text+0x878): undefined reference to `stdscr' scr_curses.o(.text+0x87e): undefined reference to `wclrtoeol' scr_curses.o(.text+0x8e8): undefined reference to `stdscr' scr_curses.o(.text+0x8ee): undefined reference to `waddnstr' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_accept_field': scr_curses.o(.text+0xb25): undefined reference to `stdscr' scr_curses.o(.text+0xb2b): undefined reference to `wrefresh' scr_curses.o(.text+0xb36): undefined reference to `stdscr' scr_curses.o(.text+0xb3c): undefined reference to `wgetch' scr_curses.o(.text+0xba9): undefined reference to `beep' scr_curses.o(.text+0xc92): undefined reference to `beep' scr_curses.o(.text+0xcd2): undefined reference to `beep' scr_curses.o(.text+0xd21): undefined reference to `beep' /usr/local/lib/libhtcobol.a(scr_curses.o): In function `cob_scr_accept': scr_curses.o(.text+0xffe): undefined reference to `stdscr' scr_curses.o(.text+0x1004): undefined reference to `wrefresh' collect2: ld returned 1 exit status make: ** [hello] Erro 1 hudson@darkstar:~/prj/tc/src/gui01$ exit Script concluído em Thu Jun 20 12:51:43 2002 I understand this errors and I could insert the libdb and libncurses library in link step to solve this problem, but in this program, I don't use screen section and files indexing... see my program: identification division. program-id. hello. author. Hudson Reis. data division. working-storage section. copy "hello.cpy". procedure division. initialize Hello-Cobol-Variables move "Hello World" to Tl-Nome set Hello-Cmd-Display to true call "TCGUI" using Hello-Gui. set Hello-Cmd-Wait to true call "TCGUI" using Hello-Gui. stop run. Is need add the libncurses and libdb library in link step? I'm attached the following files: Makefile: To you compile! hello.cob: COBOL Program. hello.cpy: Copybook COBOL to hello.cob. hello.gui: TCGUI file to use with hello.cob. Thank you! Hudson |