Hi, Visual Studio recognizes #include <wiringPi.h>
and allows me to point to the header file but when I build, I get this error:
Severity Description Project File Line
Error undefined reference to `wiringPiSetupGpio' TEST C:\Users\xeeaxe\source\repos\TEST\TEST.cpp 12
I did Synchronize Sysroot; in fact I can see the Wiring Pi headers and libraries under C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot\usr
I use the same image recommended by VisualGDM MSBuild Toolchain. I also upgraded WiringPi for my Raspberry Pi 4 using these instructions and re-did Synchronize Sysroot, Re-download all files, Remove previous contents before synchronizing.
Not sure if I should set the -lwiringPi
flag, something suggested here. Can you please help me figure out what might be causing this? Thank you!