Well, finnally, after lots of hacks I managed to compile my game in FPC ( was created originally in Delphi). I used PNGImage unit to load PNGs, but unfortunaly this lib uses some .obj files and FPC seems to not support it.

After exploring fpc, I discovered the ZLib unit, that is 99% compatible with the delphi PNGLib implementation. The problem is, that the game compiled in FPC with ZLib requires a z.dll. This works if I use the zlib.dll and rename it, but its possible to compile it without need for dlls? I'm willing to give FPC a try, but I would like to not have external dlls like in the Delphi version :roll: