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 error

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



Joined: 26 Feb 2005
Posts: 64

View user's profile Send private message

Compiler error
PostPosted: Mon Feb 20, 2006 4:40 pm     Reply with quote

Hi

I wrote and compiled a code using PCW compiler version 3.14 and worked ok. now i tryed to compile the same code using PCW compiler versione 3.242 but i've some problems:

setup_wdt(WDT_576MS);

and

setup_oscillator( OSC_4MHZ );

in last version compiler gives an error for this 2 instructions: 'Expecting an identifier' marking last bracket.

if i delete MS or MHZ compiler is ok and gives no errors.

In my .h file i find correctly both WDT_576MS and OSC_4MHZ

what is the problem??

do you think my program will be ok in case i remove those characters?

thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 4:47 pm     Reply with quote

The following program compiles with no errors with PCM vs. 3.242.
Code:

#include <16F648A.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
//============================
main()
{
setup_oscillator(OSC_4MHZ);

setup_wdt(WDT_576MS);

while(1);
}
fuzzy



Joined: 26 Feb 2005
Posts: 64

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 5:44 pm     Reply with quote

sorry it was my fault. I wrote those commands before main()

now it's ok
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