View Single Post
  #1   Spotlight this post!  
Unread 17-02-2006, 22:04
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Urgent help needed... Structs and compiling issues

okay so i make a simple structure like this:
Code:
struct constants
{
int KP;
int KI;
int KD;
int div;
};
then reference it here:
struct constants pid[2]={{0,0,0,0},{0,0,0,0}};
this works fine and dandy but when i do this it gives me a linker error:

struct constants pid[4]={{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}};

What is going on I CANNOT figure it out! the linker says something like this:

idata_pid.o cannot fit the section. Section "idata_pid.o" length = 0x0000010a

please help...! i can't figure it out ... this is so simple yet frustrating
__________________
Team 701