I've been using Lazarus and FPC on and off for a number of years on Windows, but I'm finally venturing into the Linux world. I need to develop an small console app that will run on a Raspberry Pi.
I've got Lazarus 2.0.0 and FPC 3.0.4 installed (32 bit). For some reason the newer versions do not seem to be available, but this version should be new enough for what I'm doing.
I'm getting the following Warning messages when compiling my app:
Warning: "crtbegin.o" not found, this will probably cause a linking failure
Warning: "crtend.o" not found, this will probably cause a linking failure
The program compiles and appears to be running properly, but I can't help but want to resolve these compiler warnings. I searched for and found the two files, and added the following to my fpc.cfg file:
-Fl/usr/lib/gcc/arm-linux-gnueabihf/8
However this seems to break Lazarus/FPC. When I start Lazarus, it complains it can't find the the compiler (FPC), so I assume I broke it by adding that line. If I remove the line it works fine.
So I guess there are two questions:
1. What did I do wrong and what do I need to do to fix it?
2. What do these files do and what are the consequences of not linking them?