Re: C4GL Question
Posted in 1991
>> From uunet!rmy.emory.edu!informix-list-owner Fri Oct 4 18:54:13 1991 >> From: uunet!develop!lei (Charles Lei) >> To: 4gen!rmy.emory.edu!informix-list >> Subject: C4GL Question >> >> Hello Netland! >> >> I have a minor Informix question for you. We've been using Informix I4GL and >> R4GL for a few months now (Informix 4GL Version 4.0 under SCO Unix 3.2.2), >> and everything has worked out well. >> >> We tried to use C4GL the other day, and it gave us some symbol referencing >> errors. To make sure it wasn't something I did, I wrote a simple program >> as follows: (...) >> >> I compiled this under both I4GL and R4GL, and it worked just fine, but >> when I try to use C4GL, I end up getting >> >> test.c >> undefined first referenced >> symbol in file >> tigetstr /usr/informix/lib/libforms.a >> tigetnum /usr/informix/lib/libforms.a >> tparm /usr/informix/lib/libforms.a >> setupterm /usr/informix/lib/libforms.a >> tigetflag /usr/informix/lib/libforms.a >> ld fatal: Symbol referencing errors. No output written to a.out >> >> It looks like its missing a library, but yet I4GL works fine. Can someone >> please advise what is wrong, and how I can go about fixing this problem? >> >> Thanks in advance for your response. >> Charles This was a botch by the people who did the port. You're right, it's missing a library. To correct, either get the 4.00.UH2 update (if you have maintenance, it's free, I think). To get it working in your version, look for the "cc" line in the c4gl script. Add -lcurses to the end, e.g. exec cc -I$INFDIR/incl $A $INFDIR/lib/lib4gl.a \\ $INFDIR/lib/libforms.a $INFDIR/lib/libsql.a -lcurses ^^^^^^^^ If you ever get "ftime" as an unresolved external, add -lx as well. If you have RDS/ID and you ever compile your own runners/debuggers, make the same change to the cfglgo and cfgldb script. -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland I says, "Earl, this hill can spill us you better slow down or you're gonna kill us just make one mistake, and it's the Pearly Gates for them 85 crates of U.S.D.A.-approved cluckers. You wanna hit second gear, please?" -- 'C. W. McCall', "Wolf Creek Pass"