Keil Logo

RTX51 TINY: ERROR L104 (MULTIPLE PUBLIC DEFINITIONS) OF MAIN


Information in this article applies to:

  • C51 All Versions

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:\KEIL\C51\LIB\RTX51TNY.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

Last Reviewed: Sunday, July 17, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.