View previous topic :: View next topic |
Author |
Message |
Guest
|
printf error |
Posted: Fri Apr 01, 2005 8:40 am |
|
|
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
|
|
Posted: Fri Apr 01, 2005 8:43 am |
|
|
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
|
|
Posted: Fri Apr 01, 2005 9:43 am |
|
|
It is a very trivial error to think that it is a bug. 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
|
|
Posted: Fri Apr 01, 2005 9:50 am |
|
|
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
|
|
Posted: Fri Apr 01, 2005 10:01 am |
|
|
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
|
|
Posted: Fri Apr 01, 2005 10:05 am |
|
|
next time, when something occurs like this one, i will backup the files first. |
|
|
Eduardo__
Joined: 23 Nov 2011 Posts: 197 Location: Brazil
|
|
Posted: Wed Aug 14, 2013 12:14 pm |
|
|
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.
_________________ Eduardo Guilherme Brandt |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Thu Aug 15, 2013 4:13 am |
|
|
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 |
|
|
|