I compile Return to Basic (RTB) according to the instructions and have installed wiringPi according to its instructions but I get fatal errors when linking:
Linking C executable rtb
CMakeFiles/rtb.dir/nesFns.c.o: In function `doNesOpen’:
nesFns.c:(.text+0×40): undefined reference to `setupNesJoystick’
nesFns.c:(.text+0x5c): undefined reference to `readNesJoystick’
CMakeFiles/rtb.dir/nesFns.c.o: In function `doNesRead’:
nesFns.c:(.text+0xc4): undefined reference to `readNesJoystick’
CMakeFiles/rtb.dir/nesFns.c.o: In function `doNesUp’:
nesFns.c:(.text+0×108): undefined reference to `readNesJoystick’
CMakeFiles/rtb.dir/nesFns.c.o: In function `doNesDown’:
nesFns.c:(.text+0x15c): undefined reference to `readNesJoystick’
CMakeFiles/rtb.dir/nesFns.c.o: In function `doNesLeft’:
nesFns.c:(.text+0x1b4): undefined reference to `readNesJoystick’
CMakeFiles/rtb.dir/nesFns.c.o:nesFns.c:(.text+0x20c): more undefined references to `readNesJoystick’ follow
collect2: ld returned 1 exit status
make[2]: *** [rtb] Error 1
make[1]: *** [CMakeFiles/rtb.dir/all] Error 2
make: *** [all] Error 2
What could be the reason?