Error 142: Invalid EXTRN definition Error 142 occurs when loading .OBJ files with {$L <name>}. The .OBJ file contains an EXTRN directive that refers to something other than a procedure, function, data item, or typed constant. An EXTRN may not refer to a type, simple constant, absolute variable, or inline procedure or function.