PIC 18F13K22 compiler error?

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
baz_w
Posts: 15
http://meble-kuchenne.info.pl
Joined: Thu Dec 23, 2021 11:26 am

PIC 18F13K22 compiler error?

Post by baz_w »

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
Attachments
FCS2 20A V3 X.0.1.fcfx
(35.98 KiB) Downloaded 23 times

chipfryer27
Valued Contributor
Posts: 1683
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 582 times

Re: PIC 18F13K22 compiler error?

Post by chipfryer27 »

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

baz_w
Posts: 15
Joined: Thu Dec 23, 2021 11:26 am

Re: PIC 18F13K22 compiler error?

Post by baz_w »

Many Thanks, FC5 used to tell you checkyour C code on that type of error, pity FC9 dont. so once again THANKs

chipfryer27
Valued Contributor
Posts: 1683
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 374 times
Been thanked: 582 times

Re: PIC 18F13K22 compiler error?

Post by chipfryer27 »

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

Post Reply