Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

C/C++ • Re: undefined reference problem

$
0
0
OK. On a Pi4, with nothing attached to the GPIO, I compile and run it - no errors occur

Code:

pi@pi:~/ng $ gcc -o reader reader.c -l wiringPi -l pthread -l rtpi@pi:~/ng $ ./reader
Do I need to trigger it somehow?
You will need to wire it into the GPIO and present a card to a card reader.

Statistics: Posted by apollosg — Thu Jul 17, 2025 5:04 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles