I know several posts have been made about this, but after looking through them I still cannot solve this issue. i am trying to control a stepper motor with wiringpi but when i try to compile i get the undefined reference to error for wiringpitsetupgpio, pinmode, digitalwrite and delay.
I compile in the terminal with this line:
Code: Select all
g++ -Wall -o stepper stepper.cpp -Iwiringpi
Thanks in advance.