I am new to the Raspberry Pi, although experienced in Delphi / Windows. I am running Lazarus IDE v0.9.30.4-6, and downloaded wiringPi and the hwiringPi wrapper for it. I have a simple program.
Uses ..., hwiringPi;
...
procedure TForm1.vbSetDigitalClick (Sender : TObject);
begin
DigitalWrite (P12, 1);
end;
hwiringPi.pas includes the line
{$link ./wiringPi/wiringPi.o}
Initially on compile it could not find wiringPi.o, so I changed it to
{$link ../wiringPi/wiringPi/wiringPi.o}
If I comment out the DigitalWrite request, the project compiles. When I uncomment the DigitalWrite, it fails with
wiringPi.c:(.text+0x1d04): undefined reference to 'piHiPri'
I have tried rebuilding the library, and moving it so that the
{$link ./wiringPi/wiringPi.o}
was correct, but to no avail. I suspect some paths are wrong somewhere, but have run out of options to try. Has anyone got any suggestions?