View Single Post
  #1   Spotlight this post!  
Unread 21-04-2013, 23:55
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Question Code failing to load (Undefined symbol)

I recently ran into a very weird... bug? glitch? Here's the rundown:

1. When trying to deploy this code: https://bitbucket.org/teammetalcow/2013offseason/src it deploys 100% okay, but after reboot, we get a "No Robot Code" on the DS, as well as a message saying it failed to load, with a NetConsole message that there was an "Undefined reference to _ZN11VectorDrive3kPyE.". I had edited the file (Subsystems/VectorDrive.h) which has the VectorDrive class in it, but only added a minus sign in line 140. I'm confused as to how that could cause this error.

2. Any other code/program works fine.

3. Reverting back to without the minus does not change anything. (I think that's all I changed.)

4. A clean build does not change anything.

5. Creating a new project and copying over source does not change anything.

6. Formatting the cRIO does not change anything.

7. Deploying straight to cRIO/Over Ethernet/over WiFi does not change anything.

I'm extremely baffled. I would be overhauling the code I changed tomorrow anyways, I will see if that fixes my problems. But this is an extremely confusing problem. Has anyone ever had such an issue before?

EDIT:
Fixed it by overhauling the code that was changed.
I'm still baffled over this, though.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage

Last edited by Toa Circuit : 22-04-2013 at 11:57. Reason: Fixed problem
Reply With Quote