Hi,
I'm using uVision 3,23 with CA.exe (compiler) V2.41 and LA.exe (linker) 2.41. The program compiles, but with the linking run, I get errors;
*** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: mktime?T ADDRESS: 200023B4H
... :S. I've tried I guess everything. This error happens with the line:
time_t TIME; struct tm *ptim; /* the rest of my code... */ TIME = mktime(ptim)-0x3FF36300;
.
If I comment that line, the linker does the linkiing fine. The mktime() is declared in time.h, and the file is included. When I put the decleration in the local file; same error.. I don't know what to do anymore :S. Any ideas? The microcontroller is a STR7 and the code is for sync the hardware-RTC with the current time..
Thank you so so very much..
Jay.
Per Westermark,
I've tried almost every time.h header file I could find.. But.. Still no luck. Yesterday you said that you use mktime() ok, with no extra work. Can you please send me your time.h or/and your implementation of it.. Because I cannot get it work, and it looks like I need using mktime.. :S.
Thank you very very much.
I don't know much about this. But according to your post, you told us that: "I'm using uVision 3,23 with CA.exe (compiler) V2.41 and LA.exe (linker) 2.41."
I think what you use is this:
http://www.keil.com/support/man/docs/ca/ca_library.htm
There are no "time.h" and "mktime()" in CA.