[Development] Help with WinCE: time()

Björn Breitmeyer bjoern.breitmeyer at kdab.com
Thu Apr 3 09:49:01 CEST 2014


Hi Thiago,

at most the struct is defined, i think sometime there was even a fordward 
declare of the time function. Short version you have to take a different 
codepath if you need that for ce. Have a look in qdatetime.cpp. Basically you
would use a system call to get the time in a different format and use
qfunctions_wince.h to convert that to a time_t.

-- 
Björn Breitmeyer | bjoern.breitmeyer at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Germany: +49-30-521325470, Sweden (HQ): +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions 
Am Mittwoch, 2. April 2014, 16:42:45 schrieb Thiago Macieira:
> According to the C standard, 7.23.2.4:
> 
> 7.23.2.4 The time function
> Synopsis
> 	#include <time.h>
> 	time_t time(time_t *timer);
> 
> The Linux manual says:
> CONFORMING TO
>        SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
> 
> However, it's not working in https://codereview.qt-project.org/81697. The CI
> says:
> 
> main.cpp(110) : error C3861: 'time': identifier not found
> http://testresults.qt-project.org/ci/QtBase_stable_Integration/build_03592/w
> ince70embedded-armv4i-msvc2008_Windows_7/log.txt.gz
> 
> What gives? Where is time() defined for WinCE?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4854 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140403/41a75ea1/attachment.bin>


More information about the Development mailing list