Ah, you do have a makefile but you are not using it? Also, it looks like you are working with the Matrix or BitBake tools. I am confused by your reference to Geany. I am sure it is just an editor not an IDE, correct me if I am wrong as I actually use it as an editor only. I have done some matrix stu...
Show me the contents of:
geany_run_script.sh
Where did you get the script from? How did you find gpio.c ? Looks like it is part of a package that you don't have all of the files. WiringPI or the FriendlyArm version?