mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Improve linker symbol redefinition error messages
Now, the object file in which each definition is (as well as the source file and line) are printed with the error message. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -95,7 +95,10 @@ sym_CreateSymbol(char *tzName, SLONG nValue, SLONG nBank, char *tzObjFileName,
|
|||||||
if (nBank == -1)
|
if (nBank == -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
errx(1, "Symbol '%s' defined more than once", tzName);
|
errx(1, "'%s' in both %s : %s(%d) and %s : %s(%d)",
|
||||||
|
tzName, tzObjFileName, tzFileName, nFileLine,
|
||||||
|
(*ppSym)->tzObjFileName,
|
||||||
|
(*ppSym)->tzFileName, (*ppSym)->nFileLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user