Go to Post Now repeat after me: it is just a game. It is just a game. It is just a game... - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2008, 21:17
AHepperla's Avatar
AHepperla AHepperla is offline
Oh yeah, you know it...
AKA: Wheels
FRC #2202 (B'East Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Brookfield
Posts: 8
AHepperla is an unknown quantity at this point
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???
  #2   Spotlight this post!  
Unread 14-01-2008, 23:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,793
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: LINKING ERRORS!!!

You've run out of Program Memory on the controller.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 15-01-2008, 18:46
JonathanLKS JonathanLKS is offline
Code::Blocks
FRC #0610 (The Coyotes)
Team Role: Leadership
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Toronto
Posts: 36
JonathanLKS will become famous soon enough
Send a message via MSN to JonathanLKS
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.
__________________

Team 610 [ Co-Leader | Head Programmer | Webmaster ]
We're attending: Greater Toronto Regional, San Diego Regional, Championship
  #4   Spotlight this post!  
Unread 15-01-2008, 23:36
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,650
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: LINKING ERRORS!!!

Quote:
Originally Posted by JonathanLKS View Post
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.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #5   Spotlight this post!  
Unread 19-01-2008, 10:00
AHepperla's Avatar
AHepperla AHepperla is offline
Oh yeah, you know it...
AKA: Wheels
FRC #2202 (B'East Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Brookfield
Posts: 8
AHepperla is an unknown quantity at this point
Re: LINKING ERRORS!!!

Alright thanks guys, helped a lot and we're back on track now!!!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking error Turdmoe Technical Discussion 2 27-01-2007 19:01
Error Linking for '05 RC Jon236 Programming 2 12-02-2006 14:30
A linking problem T Shap Programming 6 15-01-2006 00:23
Linking Errors: "section '????' can not fit the section. ..." Astronouth7303 Programming 3 16-01-2005 21:36
Dynamic Linking with PHP plutonium83 Website Design/Showcase 6 12-01-2005 19:41


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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