Tools.h++ compile error: C2065: 'localtime_r' : undeclared identifier

Article ID: 915
Last updated: 29 Jan, 2008
Article ID: 915
Last updated: 29 Jan, 2008
Revision: 1
Views: 4311
Posted: 15 Oct, 1999
by --
Updated: 29 Jan, 2008
by
Problem


Tools.h++ fails to compile and returns an error message, as shown below:

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 the 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 if you have downloaded the latest version of Tools.h++ but not the latest version of the SPM.




Action


To resolve the error, delete or rename any previous installations of SPM and Rogue Wave products, 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: 915
Last updated: 29 Jan, 2008
Revision: 1
Views: 4311
Posted: 15 Oct, 1999 by --
Updated: 29 Jan, 2008 by

Others in this category