Re: Mixing 4GL with Curses Screen Handling
Posted in 1997
On Thu, 23 Jan 1997 22:52:46 -0500, Jim Welch <mbsoft@ix.netcom.com> wrote: >I'm working on making some modifications to an existing GUI written >entirely in 'C' with curses screen handling. My mods include adding >several new 4GL forms and modules to the existing application. Rather >than rewriting existing portions of the GUI, I plan to combine 4GL >screen handling with the curses handling. Now my problem... > >When I am building the new app, I seem to come across a problem with the >linker and duplicate references to some curses library functions. I >wrote a small test program that highlights the problem: <clipped> >Building from the Makefile above yields the following errors in Ultrix >4.4: >/usr/informix/lib/libnforms.a(curses.o):_endwin:multiply defined >/usr/informix/lib/libnforms.a(tputs.o):tputs:multiply defined >/usr/informix/lib/libnforms.a(attrset.o):wattrset:multiply defined > >Now, if I modify the Makefile above and omit the cursesX library, the >test program will compile without errors. However, if I add some >additional cursesX calls such as 'mvwprintw', 'beep' etc. to the test >program, these will will not be found during the link. > >Has anyone else experienced this or similar problems. Yes. It's been years, but the way I remember it is to extract the curses routine that you need from the curses library and then make your own. Use it and informix's.