Note: I get the following warnings: Warning: "crtbegin.o" not found, this will probably cause a linking failure Warning: "crtend.o" not found, this will probably cause a linking failure According to this posting, the warnings can be ignored: http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-June/081661.html