That example needs to be fixed. Maybe I have missed to link some library or the linking order is wrong, but I haven't investigated further, because I'm focusing on the library itself.
EDIT: seems that this could be fixed by passing --gc-sections to the linker, or rather by passing -k--gc-sections to the fpc compiler. It is only matter to add this parameter to the makefile.fpc:
then regenerate the Makefile as usual, byCode:[compiler] options=-Xm -k--gc-sections
Code:fpcmake -r -w -Twii
Bookmarks