I get error C2065: 'localtime_r' : undeclared identifier

Article ID: 984
Last updated: 01 Feb, 2008
Article ID: 984
Last updated: 01 Feb, 2008
Revision: 1
Views: 24811
Posted: 15 Oct, 1999
by Dean J.
Updated: 01 Feb, 2008
by Dean J.
Problem


Tools.h++ fails to compile and gives the error message:

 cl    -I.... -ID:/Program/spm/parts/tls0710wsourcesrc     -nologo -GX -DNOMINMAX -DWIN32 -MDd -DRWDEBUG=1 -Zi -Fd....lib	ls7d.pdb   -DRW_MULTI_THREAD -D_REENTRANT  -DRWDLL -D_RWBUILDDLL -D__DLL__  -DRW_NO_STL=1   -c D:/Program/spm/parts/tls0710wsourcesrc wdate.cpp -o rwdate.obj  rwdate.cpp  D:/Program/spm/parts/tls0710wsourcesrc wdate.cpp(427) : error C2065: 'localtime_r' : undeclared identifier  NMAKE : fatal error U1077: 'cl' : return code '0x2'   



Cause


The reason for this error is the absence of a preprocessor flag: RW_NO_LOCALTIME_R

A test for setting this flag has been included in the latest version of the Software Parts Manager (1.4.6), but earlier versions of the SPM do not have that test.

This error occurs when the user has downloaded the latest version of Tools.h++ but not the latest version of the SPM.


Action


To resolve this, the user must install the latest SPM (at least version 1.4.6), and then install and build Tools.h++ with that version of the SPM.

Make sure that you do not merge the new version with an older version of SPM, as that may not update the tests correctly.


This article was:   Helpful | Not helpful
Report an issue
Article ID: 984
Last updated: 01 Feb, 2008
Revision: 1
Views: 24811
Posted: 15 Oct, 1999 by Dean J.
Updated: 01 Feb, 2008 by Dean J.

Others in this category