[fpc-pascal] linking name issue

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Jun 5 20:06:27 CEST 2010


On 05 Jun 2010, at 19:38, spir wrote:

> I have renamed a unit previously called "UnitType" to "UnitSystem". The unit name itself, its file name, and the name used to import it in a uses clause inside a testing program where all changed.
> But the linker still expects the previous name:
> testUnit.pas(78,1) Warning: Object UnitType.o not found, Linking may fail !
> testUnit.pas(79,1) Error: Error while linking
> Note: UnitSystem compile finely, UnitSystem.o exists.

Maybe you did not recompile all units that used the old unit name? Try rebuilding the program (compile with the -B option, or delete all .ppu files).


Jonas


More information about the fpc-pascal mailing list