* use translateable error messages for undefined symbols and also report in which object file the symbol was first found

git-svn-id: trunk@43549 -
This commit is contained in:
svenbarth 2019-11-21 21:45:11 +00:00
parent 1e66b2464a
commit 2a1d26cc90

View File

@ -3065,7 +3065,12 @@ implementation
begin
exesym:=TExeSymbol(UnresolvedExeSymbols[i]);
if (exesym.State=symstate_undefined) then
Comment(V_Error,'Undefined symbol: '+exesym.name);
begin
if assigned(exesym.ObjSymbol) and assigned(exesym.ObjSymbol.ObjData) then
Message2(link_e_undefined_symbol_in_obj,exesym.name,exesym.objsymbol.ObjData.Name)
else
Message1(link_e_undefined_symbol,exesym.name);
end;
end;
{