Keil Logo

LX51: WARNING L25 (DATA TYPES DIFFERENT)


Information in this article applies to:

  • C51 All Versions

SYMPTOM

The LX51 linker outputs;

*** WARNING L25: DATA TYPES DIFFERENT
    SYMBOL:  _mySymbol
    MODULE:  Mod1.obj (MOD1)
   DEFINED:  Mod2.obj (MOD2)

CAUSE

This error indicates an inconsistency between the definition of a function and an external reference to that function. The problem may be caused by the function prototype used by the external call or may be caused by parameters passed to the function that do not match the prototype.

RESOLUTION

Examine the code in question and make sure that all parameters (including the return value) are of the same data type. Be certain to check the following:

  • The definition of the function (in the source of the "DEFINED" module).
  • The prototype (either in a header or the source of "MODULE").
  • The call to the function (in the source of "MODULE").

MORE INFORMATION

Last Reviewed: Monday, October 23, 2006


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.