Jump to content
Sign in to follow this  
evandude

what's going on here?

Recommended Posts

I'm not sure this is the right section of the forums to be posting this in, I apologize if it's not...

 

here's the section of code where I'm getting errors:

 

if(recock[1]>recock[6])
     {
    	 recock[1]=recock[1]-recock[6];
    	 maketone(100,1);
    	 delay_ms(200);
    	 delay_ms(200);
     }
     else
     {
    	 recock[1]=0;
    	 recock[0]=recock[0]-1;
    	 maketone(100,1);
    	 delay_ms(200);
    	 delay_ms(200);
     }

 

the errors I get:

 

C2C_RE~1.C(351): Error: General error

C2C_RE~1.C(352): Error: General error

C2C_RE~1.C(353): Error: Redefinition of 'recock'

 

line 351 is the bracket right before the else statement.

 

I am using the exact same code in several other places in my program, just with different arrays... no idea why this one is the only one giving me trouble...

 

before applying the 5.1.2 patch, it was giving the same errors, but one line forward (ie- lines 352-354 instead of 351-353)  which makes more sense because the error about redefinition of recock was pointing to a line that actually dealt with the recock array...

 

of note, is that if I just temporarily make that whole else statement section a comment, then the compiler reports the same errors around the very next else statement it finds...

 

or, if I make the first line, or 2, or 3, etc. of that else statement section a comment, it will just find an error with the next one.  (redefinition error for the first 2, function definition error for the next 3)

 

I am using the program in the evaluation period.  it just seems very odd that the compiler didn't find any error when exactly the same code was used a couple times previously, with different arrays, but after about line 350 it gives an error on the first else statement it finds...  am I hitting some sort of evaluation version limitation or something?  it just seems like any code after line 350 is invariably giving errors.

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...