List Info

Thread: cygwin build: tm_gmtoff not found in tm struct




cygwin build: tm_gmtoff not found in tm struct
user name
2006-12-25 04:37:31

It's also me.

I got it works by replacing all tp->tm_gmtoff with _timezone.

--- In iolanguage%40yahoogroups.com">iolanguageyahoogroups.com, "beman.smopuim&quot; <beman.smopuim...>
wrote:
>;
> after suggestion,I unset OS,and build some dll file successfully,but
&gt; when I build iodate module, I meet with some problem:
> ====================================
&gt; make[1]: Entering directory `/cygdrive/d/iobuild_cygwin/libs/iovm'
&gt; gcc -DINSTALL_PREFIX=&quot;" -Os -g -Wstrict-prototypes -I. -I/source
> -I../basekit/_build/headers -
> /coroutine/_build/headers -I../garbagecollector/_build/headers
>; -I../skipdb/_build/headers -DTM_G
&gt; FF -DBUILDING_IOVM_DLL -c source/IoDate.c -o _build/objs/IoDate.o
> source/IoDate.c: In function `IoDate_gmtOffsetSeconds':
>; source/IoDate.c:377: error: structure has no member named `tm_gmtoff'
> source/IoDate.c: In function `IoDate_gmtOffset':
> source/IoDate.c:390: error: structure has no member named `tm_gmtoff'
> make[1]: *** [_build/objs/IoDate.o] Error 1
> make[1]: Leaving directory `/cygdrive/d/iobuild_cygwin/libs/iovm'
&gt; make: *** [all] Error 2
> =========================================
> it means tm_gmtoff isnot in the file time.h, and I search via
> google,and found I should add some string to CFLAGS, something like "
&gt; -DTM_GMTOFF=tm_gmtoff",and then add the member to tm structure of
> time.h. I follow the steps,but the same errors occur too. do I miss
> some important steps? can some guys help me another time,thanx a lot!
>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )