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 CCS Technical Support

Error in new version CCS 2.213

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



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

Error in new version CCS 2.213
PostPosted: Sat Dec 04, 2004 10:52 am     Reply with quote

Hi,

In my program I have preproccesor #IF with some condition, example:

#DEFINE __DEBUG__ 1
#DEFINE __DEGUB_EEPROM__ 0

#IF __DEBUG__ && __DEBUG_EEPROM__

In other version this work OK and this new version the compiler tell me the follow:

ERROR 27 ... Expression must evaluate to a constant

I see that the problem is the logical operator &&, This is a bug?

Thank you very much!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Dec 04, 2004 11:37 am     Reply with quote

You have spelled "DEBUG" differently, between these two lines:

#DEFINE __DEGUB_EEPROM__ 0

#IF __DEBUG__ && __DEBUG_EEPROM__
cfernandez



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

PostPosted: Sat Dec 04, 2004 11:40 am     Reply with quote

Dear PCM

This is a write error in this topic.

#DEFINE __DEBUG__ 1
#DEFINE __DEBUG_EEPROM__ 0

#IF __DEBUG__ && __DEBUG_EEPROM__

The error is the same
Guest








Re: Error in new version CCS 2.213
PostPosted: Sun Dec 05, 2004 2:21 am     Reply with quote

cfernandez wrote:
Hi,

In my program I have preproccesor #IF with some condition, example:

#DEFINE __DEBUG__ 1
#DEFINE __DEGUB_EEPROM__ 0

#IF __DEBUG__ && __DEBUG_EEPROM__

In other version this work OK and this new version the compiler tell me the follow:

ERROR 27 ... Expression must evaluate to a constant

I see that the problem is the logical operator &&, This is a bug?

Thank you very much!


bug ! Confused

wrokaround: use '|' instead of '||' fix my problem

wrokaround: use '&' instead of '&&' best wishes
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