mob-i-l
Posts: 315
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Errors when linking RTB: undefined readNesJoystick

Mon Apr 21, 2014 9:29 pm

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?
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

Return to “C/C++”