Hi,
I've got the folowwing error compiling the new release 1.25 :
timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff' make[2]: ***[timermanager.o] Error 1
Should I install a particular package ? Or is it a bug ?
Thanks,
Ben
It's probably a portability problem. tm_gmtoff is a GNU extension to the tm struct. What compiler and C library are you using?
Regards,
Jean-François
I'm using cygwin with gcc-g++-3.4.4-3.
Regards, Ben
I've found that it's a frequent problem using cygwin... I'll try with glib, i'll tell you !
Bye, Ben
Sorry Jeff :-((
I can't solve my compilation problem with tm_gmtoff...
Do anybody have an idea ?
Thanks for your help.
I have tried to add a fix for this. It's already in CVS but not tested. The following files have been updated: http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.cpp?revision=1.3 http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.h?revision=1.3 http://linknx.cvs.sourceforge.net/\*checkout*/linknx/linknx/linknx/configure.ac?revision=1.13
Thanks for your patch !
But I still have this error : timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff'
An idea ?
Hi Jean-François,
Sorry to need you again.
But could you upgrade your patch, please ?
Thanks per advance.
Now I hope everything is OK The following files have been updated: http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.cpp?revision=1.4 http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.h?revision=1.4 http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/timermanager.cpp?revision=1.7 http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/timermanager.h?revision=1.7 http://linknx.cvs.sourceforge.net/\*checkout*/linknx/linknx/linknx/configure.ac?revision=1.13
Hi Jef,
Good job ! It works fine now ! I thank you so much !
Log in to post a comment.
Hi,
I've got the folowwing error compiling the new release 1.25 :
timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff'
make[2]: ***[timermanager.o] Error 1
Should I install a particular package ?
Or is it a bug ?
Thanks,
Ben
Hi,
It's probably a portability problem. tm_gmtoff is a GNU extension to the tm struct. What compiler and C library are you using?
Regards,
Jean-François
Hi,
I'm using cygwin with gcc-g++-3.4.4-3.
Regards,
Ben
I've found that it's a frequent problem using cygwin...
I'll try with glib, i'll tell you !
Bye,
Ben
Sorry Jeff :-((
I can't solve my compilation problem with tm_gmtoff...
Do anybody have an idea ?
Thanks for your help.
Hi,
I have tried to add a fix for this. It's already in CVS but not tested.
The following files have been updated:
http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.cpp?revision=1.3
http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.h?revision=1.3
http://linknx.cvs.sourceforge.net/\*checkout*/linknx/linknx/linknx/configure.ac?revision=1.13
Regards,
Jean-François
Hi,
Thanks for your patch !
But I still have this error :
timermanager.cpp:438: error: 'struct tm' has no member named 'tm_gmtoff'
An idea ?
Ben
Hi Jean-François,
Sorry to need you again.
But could you upgrade your patch, please ?
Thanks per advance.
Ben
Hi,
Now I hope everything is OK
The following files have been updated:
http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.cpp?revision=1.4
http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/suncalc.h?revision=1.4
http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/timermanager.cpp?revision=1.7
http://linknx.cvs.sourceforge.net/\checkout*/linknx/linknx/linknx/src/timermanager.h?revision=1.7
http://linknx.cvs.sourceforge.net/\*checkout*/linknx/linknx/linknx/configure.ac?revision=1.13
Regards,
Jean-François
Hi Jef,
Good job !
It works fine now !
I thank you so much !
Regards,
Ben