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

printf error

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








printf error
PostPosted: Fri Apr 01, 2005 8:40 am     Reply with quote

i'm sorry if i'm asking something dummy....

Code:


   SetupDailyAlarm(h,m,0);

   printf("\n\rDailyAlarm At: %02u:%02u:00", h,m);
}


when i compiled i'm getting this message and cursor locating at char red colored '\'

printf("\n\rDailyAlarm At: %02u:%02u:00", h,m);


Error[1] C:\Program Files\Picc\MyProjects\18f452.c 130 : Illegal C character in input file 0x6E after \
Guest








PostPosted: Fri Apr 01, 2005 8:43 am     Reply with quote

Note: i removed that line and code compiled successfully. No problem but i posted because i can't understand why.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Apr 01, 2005 9:43 am     Reply with quote

It is a very trivial error to think that it is a bug. Cool But you know...

Are you running a new version ? Wich? Did you tested with another version ?
If you had selected line number option in the editor, does the compiler point to
the same line/column where the error is ?

Keep well,

Humberto
Ttelmah
Guest







PostPosted: Fri Apr 01, 2005 9:50 am     Reply with quote

Usually, this happens when there is an invisible 'non printable' character on the line after the '\'. I have seen the same behaviour in the past from other 'C' compilers for this reason. It would have been interesting to step along the line, one character at a time with the cursor, and see if two steps were needed to advance to the next character at this point.

Best Wishes
Guest








PostPosted: Fri Apr 01, 2005 10:01 am     Reply with quote

after computer restarted, and of course program restarted, i typed that line again, this time no error.

now i don't know why. i didn't try to retype it before restart. maybe an illegal char removed when i deleted that line. maybe restart solved problem. interesting.

thanks.
Guest








PostPosted: Fri Apr 01, 2005 10:05 am     Reply with quote

next time, when something occurs like this one, i will backup the files first.
Eduardo__



Joined: 23 Nov 2011
Posts: 197
Location: Brazil

View user's profile Send private message

PostPosted: Wed Aug 14, 2013 12:14 pm     Reply with quote

I Had had the same problem!

My CCS PCH compiller is V4.124, together MPLAB V8.73.

I struggled about 2 hours with this problem, but I found no direct solution.

My lucky was that I´ve had backups. So I unpacked last working backup and replaced the 2 .c files that I were modified. Then, it worked well again...


In another words... it was very strange. I suppose something wrong with MPLAB project file or even with some of the old files that the compiler built.

That´s my story.. Googd luck people,.. and... make backups regularly... it´s not the first time it happens to me.


Smile
_________________
Eduardo Guilherme Brandt
Ttelmah



Joined: 11 Mar 2010
Posts: 19470

View user's profile Send private message

PostPosted: Thu Aug 15, 2013 4:13 am     Reply with quote

I think you will find it has something to do with Windows, fonts, and international mapping. I can generate _two_ different backslash characters on my system. The normal 0x5C (reverse solidus), and 0xFF3C (full width reverse solidus). To generate this, I have to have 'caps lock' enabled, then type the standard '\' character. If I type this, then the compiler complains as described. With the font I use, they appear identical....

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