Browse by category:
|| | ||
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'
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.
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.
|Rounding Errors in RWDecimal<T>||Tools.h++ compile error: C2065: 'localtime_r' : undeclared...|