well, i faced the same problem, and with some search i found this function helps in casting a double value into a TUint.
I solved it with casting first into TInt and then to a TUint, try using:
TInt nTime = (TUint)(TInt)dTime
TInt nTime = (TUint)dTime
I'm building a graphic example based on a library built from c++ source code, linked with a consolle example program.
The build process works on the emulator configuration, but on the target configuration for the nokia phone (THUMB), it generates a very strange error message
...\Symbian\6.1\Series60\EPOC32\RELEASE\THUMB\UREL\IMAGE.LIB(GRAYC.o)(.text+0x29ec):grayc.cpp: undefined reference to `__fixunsdfsi'
...\Symbian\6.1\Series60\EPOC32\RELEASE\THUMB\UREL\IMAGE.LIB(GRAYC.o)(.text+0x29ec):grayc.cpp: relocation truncated to fit: ARM_THUMB23 __fixunsdfsi
the unreferenced symbol __fixunsdfsi isn't a function name used in the code, doesn't exist in the epoc library or in the series60 library. Does anyone know how is possible to generate an error of this kind?
In my opnion, there is probably an error when retyping a var. However, I am not sure if it causes the relocation - the undefined var or both. The best way to find it is to comment your code until the error disappears and when the line is localized, try to fix it.