Hi
I set out with the intention of connecting and communicating with small gadgets of own design via the GPIO on Raspberry Pi, programming in C/C++. Did not think it should be a problem. Did some googling, and ended up looking at wiringPi as a possibility. I tried a few installs of wiringPi on my Pi3 with Raspbian. The last installation is from
-undefined reference to 'wiringPiSetup
-undefined reference to 'pinMode
-undefined reference to 'digitalWrite
A look at the source code wiringPi.c for the library shows that the functions are declared and defined, and they can also be found in wiringPi.h. So what is wrong? Writing and running small C programs from Geany works fine, as long as not using wiringPi. Tried going through the "Learn To Code with C" from MagPie with Geany, and it went fine. It has been 16 years since I took a class in C/C++ and haven't used it since, so it is a bit rusty to say it politely. I have programmed in other lanuages though. I have tested installs of different Linux editions through the years but have always gone back to Windows, so I only know the most necesssary ways to get round in Linux.
Any way, I will be gratefull for some help with this. Maybe it is best to avoid using wiringPi for a newbe like me, but what to use then? I would prefer to keep it in C or C++.
Best regards.