View Full Version : LINKING ERRORS!!!
AHepperla
14-01-2008, 21:17
Hey guys, when we compile our code in EasyC, we get a linking error and the error says: Error- section '.code_u2open.o' can not fit the section. Section '.code_u2open.o' length=0x00000064. We're dividing with floats and that seems to be the problem because it works with ints. Any ideas???
Mark McLeod
14-01-2008, 23:22
You've run out of Program Memory on the controller.
JonathanLKS
15-01-2008, 18:46
If you need those decimals, you could just scale them up by a few factors of ten so you can use ints, divide, then scale it back down.
It'll be faster too.
Kevin Sevcik
15-01-2008, 23:36
If you need those decimals, you could just scale them up by a few factors of ten so you can use ints, divide, then scale it back down.
It'll be faster too.
Scale up by factors of 2. Then you can use << instead of *. It's a heck of a lot quicker. You still have to divide unless you're using unsigned ints, however.
AHepperla
19-01-2008, 10:00
Alright thanks guys, helped a lot and we're back on track now!!!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.