Keil™, An ARM® Company

Technical Support

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