ARM Technical Support Knowledge Articles

ERROR L104 (MULTIPLE PUBLIC DEFINITIONS) OF MAIN

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


QUESTION

I have created my first RTX51 Tiny program. But, when I compile and link I receive the following error message:

*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
    SYMBOL:  MAIN
    MODULE:  C:KEILC51LIBRTX51TNY.LIB (?RTX51_TINY)

What does this mean?

ANSWER

RTX51 Tiny has its own main C function so you must not include one in your project. Instead, the first function in your program that executes is the task 0 task.

To resolve the linker error move the code in your main C function into the task 0 task.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-17 10:55:46

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential