| |||||
Technical Support Support Resources
Product Information | RTX51 TINY: WARNING 16 (UNCALLED SEGMENT)Information in this article applies to:
QUESTIONI have created the following simple RTX51 Tiny program.
void t1 (void);
void t2 (void);
void t1 (void) _task_ 1
{
}
void t2 (void) _task_ 2
{
}
When I compile this, I receive the following linker errors:
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?T1?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?T2?MAIN
*** WARNING L10: CANNOT DETERMINE ROOT SEGMENT
What causes these errors and how do I eliminate them? ANSWERThe error is caused by the function prototypes: void t1 (void); void t2 (void); You do not need prototypes for task functions. If you remove these, then no errors are generated by the linker. MORE INFORMATION
SEE ALSOLast Reviewed: Sunday, July 17, 2005 | ||||
| |||||