Linking Trouble lazarus / 61-Beginners ---------------------------------------------------------------------- ZEDHEADSDEAD · 2018-10-26 21:50 Hi all, I am constructing a GUI controller for a project on a raspberry Pi 3 B+ running Raspian. I need access to the PXL library to send a constant frequency to a Driver circuit on a tesla coil. I ran a sample program that came with PXL called Blinky and it worked perfectly. However, when I use the PXL library in my own projects it always gave me this error "cannot find crtbegin.o" and "cannot find crtend.o". So I included the folder these files are located in. Now it won't compile and says it can't find the pxl.boards.types. Has anyone else had this issue? Any help is GREATLY appreciated! ---------------------------------------------------------------------- Thaddy · 2018-10-27 06:15 There are two issues here: 1) The crtbegin.o and crtend.o are in the GCC library directories and are not related to this error. This can usually be ignored but on my Raspberry Pi 3 I add:  -Fl/usr/lib/gcc/arm-linux-gnueabihf/6.3.0 to fpc.cfg which is where they are located for my default GCC. 2) The pxl.boards.types is  a pascal unit that is not present or in the wrong place. http://asphyre.net/pxl/help/PXL.Boards.Types.html So simply download the latest version of that library. Note that the sourcepath is case-sensitive: I have /home/pi/pxl/Source (with capital S) also - the basic opengles example crashes on fpc331 trunk (yes, resources are correct) - the blink example works, but does not exit properly on key press.. Rest not tested. It seems Asphyre is not very stable, which surprises me a bit. ---------------------------------------------------------------------- ZEDHEADSDEAD · 2018-10-28 00:06 Seems reasonable. I'll tinker with it a bit and I'll let you know if i have any success.  Thank you muchly! ---------------------------------------------------------------------- Thaddy · 2018-10-28 08:02 you make just have to correct the /path/to/source/ to /path/to/Source/ As I said, although it compiles on the Raspberry Pi it doesn't seem to be tested sufficiently on armhf. ---------------------------------------------------------------------- ZEDHEADSDEAD · 2018-10-30 19:03 FOUND IT! I was missing a path in the "unit files" section. Once I included the source it compiled.