I had tried both paths without success. (And for the avoidance of doubt, in case it matters, I did remove the gpiod unit).
And had compiled, running (crash or not) code with the correct one. Something else was amiss. So I try things to see what happens.
pi@raspberrypi:~/Documents/PharosGPS $ gpiodetect
gpiochip0 [pinctrl-bcm2711] (58 lines)
gpiochip1 [raspberrypi-exp-gpio] (8 lines)
Doesn't really clarify where they are, now does it? (other than that there is -h and -v ... no other commands).
Further the following call does not work (crashes) with a valid path in it:
t := gpiod.gpiod_is_gpiochip_device(PChar('/dev/gpiochip0'));
Which sends one down other rabbit holes...
Now trying to figure out serial data (UART). That is truly opaque in this well documented program.
Esp. as I don't have a reliable source of UART input that I know for sure is outputting data to the pin...
Perhaps a loop back from terminal ... tbd.
I get you're frustrated. To me, all of this is abstracted to the point of incomprehensibility and densely worded documentation doesn't show clearly. Also: I'm not a Linux guy. At all. I don't use API's much. At all. When I had hardware to interface to, I always did it at the lowest level possible. Not portable. That was never the intention. Nor is it with the current project.
Cheers,
Big boom from Hermann in your old home town the other day ...