Hi,
I an unable to compile a program for a PIC18F13K22(or PIC16F1847) I keep getting a 3178 while 1, ^(312)";" expected,FCS2 20A V3.0.0.0c:,3554mainendloop; , ^ (374)missing basic type; int assumed (warning), ^(314)";"expected, 3555;), ^(285) no identifier in declartion' ^(374)missing basic type: int assumed (warning), ^(314)";" expected, (908) exit status = 1.
Whatdose all this mean? Have I done something wrong or is it a compiler bug.
project file attached.
Many thanks Barry W
PIC 18F13K22 compiler error?
-
- Posts: 15
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 23, 2021 11:26 am
-
- Valued Contributor
- Posts: 1684
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 582 times
Re: PIC 18F13K22 compiler error?
Hi
It is telling you that in your C-code block you have omitted the ";" character
If you add it to your Oscon calculation it compiles correctly for me.
OSCCON = 0x72;
Regards
It is telling you that in your C-code block you have omitted the ";" character
If you add it to your Oscon calculation it compiles correctly for me.
OSCCON = 0x72;
Regards
Re: PIC 18F13K22 compiler error?
Many Thanks, FC5 used to tell you checkyour C code on that type of error, pity FC9 dont. so once again THANKs
-
- Valued Contributor
- Posts: 1684
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 374 times
- Been thanked: 582 times
Re: PIC 18F13K22 compiler error?
Hi
It is not the first time I've done similar, unable to see the wood for the trees
It can be very hard to proof read something you have just written..
Regards
It is not the first time I've done similar, unable to see the wood for the trees

It can be very hard to proof read something you have just written..
Regards