This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

help.

I receive lots of the following error messages when I link my program using RTx51:

*** Warning L1: Unresolved External Symbol
Symbol: ?RTX_MBX_PAGE
MODULE: C:\keil\C51\Lib\RTX51.LIB(RTXINIT)

Anyone can kindly help me to solve this problem?

Thank you in advance.

  • I'm not an RTX51 user, so my ability to help is limited. But I'll take a stab at it since it's the weekend.

    The error message means that the RTX51 library code is looking for the symbol RTX_MBX_PAGE, and can't find it. From the name, this symbol looks like it has to do with mailbox configuration -- the page of memory in which the mailboxes reside, perhaps.

    There should be an assembler file that you have to configure to match your preferences for the OS. (RTXCONF.A51, is it? Something like that.) I expect that you need to make a copy of this file, include it in your project so that it gets built, and link the resulting object code with your project so that RTX_MBX_PAGE is defined for the linker. Also, check the options to be sure that the mailbox option is enabled (assuming it is optional).

  • Drew is right.
    You need to copy RTXCONF.A51, INIT.A51 and STARTUP.A51 files to your project folder and add them (in this order) to the end of the project's source group files, then rebuild the project again.
    It should solve your problem.

    Ruven.

  • Thank you for your kind help.

    let me try it.

  • Now, it is working well.

    and I have to copy and include RTXSETUP.DCL into my project file.

    Thank you again and have a good weekend.