CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Stucture Identifier/Field Name Problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

Stucture Identifier/Field Name Problem
PostPosted: Mon Nov 06, 2006 3:47 pm     Reply with quote

It appears the 3.236 compiler is having a problem digesting the following line:

Code:
if(assigned_sensor_array[i].status != assigned_sensor_array[i].rep_status) {


I get a "Structure Filed Name Required" error with the ".rep_status" characters highlighted. I tried reversing the order of the two values being compared. I tried enclosing each in an extra set of parenthesis. Nothing worked.

This solved he problem:

Code:
      tempstatus    = assigned_sensor_array[i].status;
      temprepstatus = assigned_sensor_array[i].rep_status;

      if(tempstatus != temprepstatus)


Am I missing something?

Thanks,

John
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group