Re: cfglgo compile problem, help requested
Posted in 1994
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
RalphB8649 (ralphb8649@aol.com) wrote: : cfgl(won't)go : I am encountering compile problems while trying to create a custom : runner for a 4GL RDS application, and I am hoping that one fo the many : experts in this group can point me in the right direction. : Here is the situation. My client's machine (the target for the : application) is a vanilla SCO runtime box. They do not have a : development system and can't afford to buy one at this time. So, I : have temporarilly loaded their SCO Informix RDS software on another : system which has an ISC (Interactive) 3.3.2 development system, for : the purpose of compiling the 4GL sources and C functions of the : application. : All of the fglpc steps run OK. When I run cfglgo on 4gl's with the : C routines to create the custom runner, however, it fails in the ld steps, : giving me an unreferenced symbol error for "ftime", "first encountered in : [/usr/informix/lib/]libncolor.a". : As the application itself does not call an ftime function, and I can : locate nothing in the ISC C compiler docs regarding ftime, my current : assumption is that ftime is specific to the SCO implementation and : included in the Informix library for that reason. : Any suggestions for how I might get around this problem from someone : who is familiar with the differences between the SCO and ISC : implementations and Informix libraries? : ADthanksVANCE !! : Ralph Barker ralphB8649@AOL.com Ralph, Here is a man page on ftime from the SunOS compiler. I suspect the function is also available on SCO but haven't checked yet. You may have to roll your own based on this info. TIME(3V) C LIBRARY FUNCTIONS TIME(3V) NAME time, ftime - get date and time SYNOPSIS #include <sys/types.h> #include <sys/time.h> time_t time(tloc) time_t *tloc; #include <sys/timeb.h> int ftime(tp) struct timeb *tp; DESCRIPTION time() returns the time since 00:00:00 GMT, Jan. 1, 1970, measured in seconds. If _t_l_o_c is non-NULL, the return value is also stored in the location to which _t_l_o_c points. ftime() fills in a structure pointed to by _t_p, as defined in <sys/timeb.h>: struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; The structure contains the time since the epoch in seconds, up to 1000 milliseconds of more-precise interval, the local time zone (measured in minutes of time westward from Greenwich), and a flag that, if nonzero, indicates that Day- light Saving time applies locally during the appropriate part of the year. RETURN VALUES time() returns the value of time on success. On failure, it returns (time_t) -1. On success, ftime() returns no useful value. On failure, it returns -1. SEE ALSO date(1V), gettimeofday(2), ctime(3V) Sun Release 4.1 Last change: 21 January 1990 1 --Milt Webb -- ------------------------------------------------------------------------------ Milt Webb | email addresses> miltwebb@netcom.com Servantis Systems, Inc. | mfw@servantis.com 4411 East Jones Bridge Road | mfw@atl.fujikura.com Norcross, GA 30092 | Phone 404/840-1365(W) or 404/945-5896(H)