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

C/C++ • Re: undefined reference problem

$
0
0
How did you install WiringPi ? I installed it (on a Pi4 running Bookworm 64-bit) using the instructions on their GitHub https://github.com/WiringPi/WiringPi from the release package wiringpi_3.16_arm64.deb

Code:

sudo apt install ./wiringpi_3.16_arm64.deb
Get their example code myapp.c and compile it, linking to wiringPi. All OK.

Code:

gcc -o myapp myapp.c -l wiringPi
Does that work for you?

Statistics: Posted by neilgl — Thu Jul 17, 2025 10:22 am



Viewing all articles
Browse latest Browse all 8082

Trending Articles