Log in

View Full Version : Our C++ is not running out of debug


colinchocolate
29-01-2011, 15:30
Whenever I try downloading the code from winriver, it only allows us to download through debug. Whenever I go through the deploy option, it gives me the no code in robot error on the driver's station. Any ideas?

Austinh100
29-01-2011, 15:37
We are having the exact same problem, any help would be appreciated :D

mikets
30-01-2011, 06:42
Hook up the debug console to see what failed. We had a similar problem last year and found out our code was exceeding the 16-bit "call" distance so we had to add -mlongcall in the linker option to get the code to load.

colinchocolate
01-02-2011, 20:16
-mlongcall worked great! Thanks! :)

basicxman
01-02-2011, 22:16
-mlongcall worked great! Thanks! :)

Pro tip: In Window->Preferences you can set default build properties so you never have to worry about these things :)

colinchocolate
05-02-2011, 11:53
Hooray! Another error. we are getting a "Relocation value does not fit in 24 bits" message. I added the -mlongcall tag in the build properties>build command. Anyone have any ideas? It worked before after we added the tag, but stopped working suddenly this weekend.

HutchScout
05-02-2011, 11:56
We are also getting the same "Relocation value does not fit in 24 bits" message on our NetConsole when the bot attempts to load FRC_UserProgram at startup. Trying to find a solution.