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

Compiler upgrade and errors

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



Joined: 12 Jun 2009
Posts: 1

View user's profile Send private message

Compiler upgrade and errors
PostPosted: Fri Jun 12, 2009 7:24 pm     Reply with quote

I just upgraded our compiler to version 4.093
We were using a version 3.XX compiler

Does anyone know if the syntx has changed

This was working and it is not anymore:

MACRO:

#define NOP() #asm nop #endasm

#define CLRWDT() #asm clrwdt #endasm

In the code:

CLRWDT(); /* Tweak the Watchdog */

NOP();

I am now recieving an error "Expecting an opcode mnemonic"

Thanks for the help

Frank
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 12, 2009 7:55 pm     Reply with quote

You can fix it by adding the #case directive.

See Ttlemah's comment at the end of this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=38278
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