Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   LINKING ERRORS!!! (http://www.chiefdelphi.com/forums/showthread.php?t=61680)

AHepperla 14-01-2008 21:17

LINKING ERRORS!!!
 
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

Re: LINKING ERRORS!!!
 
You've run out of Program Memory on the controller.

JonathanLKS 15-01-2008 18:46

Re: LINKING ERRORS!!!
 
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

Re: LINKING ERRORS!!!
 
Quote:

Originally Posted by JonathanLKS (Post 678736)
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

Re: LINKING ERRORS!!!
 
Alright thanks guys, helped a lot and we're back on track now!!!


All times are GMT -5. The time now is 18:05.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi