mauricek/wcecompat

time.c(845) : error C2059: syntax error : 'bad suffix on number'

Closed this issue · 1 comments

When I try to build rev bad854b, I get a compiler error in time.c:

------8<------
time.c
c:\buildroot-wm5\wcecompat\src\time.c(845) : error C2059: syntax error : 'bad suffix on number'
c:\buildroot-wm5\wcecompat\src\time.c(845) : error C2146: syntax error : missing ';' before identifier 'L'
c:\buildroot-wm5\wcecompat\src\time.c(845) : error C2065: 'L' : undeclared identifier
NMAKE : fatal error U1077: 'clarm.exe' : return code '0x2'
Stop.
------>8------

I am using eMbedded Visual C++ 4 SP4 with the Windows CE 5.0 Standard SDK
My config is as follows:

------8<------
C:\buildroot-wm5\wcecompat>perl config.pl
windows ce version:WCE500
major:5
minor:00
Compiling for Architecture:ARMV4I
Compile: -D_WIN32_WCE=0x500 -DUNDER_CE=500 -DARM -D_ARM_ -D_M_ARM -DARMV4I -D_ARMV4I_
Link:/SUBSYSTEM:windowsce,5.00 /MACHINE:THUMB
------>8------

Solution for me was to remove the "ULL" suffix of DELTA_EPOCH_IN_MICROSECS in src/time.c:64.

For the records, here is my clarm version:

Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.