Compile error for a do nothing program

Any bugs you encounter with Flowcode should be discussed here.
Billduck1302
Posts: 8
http://meble-kuchenne.info.pl
Joined: Fri Dec 06, 2024 4:41 pm

Compile error for a do nothing program

Post by Billduck1302 »

It may be a bug on my part.
The screenshot says "Compile Error".
I have included the V10 program.
Attachments
Mega_LeafBatteryPackTrials.fcfx
(18.34 KiB) Downloaded 41 times
Flowcode Error.png
Flowcode Error.png (47.17 KiB) Viewed 1037 times

Steve-Matrix
Matrix Staff
Posts: 1416
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 193 times
Been thanked: 331 times

Re: Compile error for a do nothing program

Post by Steve-Matrix »

I just tried this project and it compiled without error. Although I had to change the target device because Flowcode complained when I loaded it, saying the FCD file was missing or corrupt.

You should try updating your library files and make sure you are using a valid unmodified target device.

If you are still having issues, please post the .c and the .msgtxt files also as these may help determine what has gone wrong for you.

medelec35
Matrix Staff
Posts: 1665
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 581 times
Been thanked: 556 times

Re: Compile error for a do nothing program

Post by medelec35 »

Just a pin not connected can be one of the causes of Syntax error
I loaded your project and for me it compiled without any changes or errors.
Perhaps you could run a full database library update, then reload your project and compile again.

Edit: Steve beat me to it, but at least there are two people now saying your project compiles OK
Martin

Billduck1302
Posts: 8
Joined: Fri Dec 06, 2024 4:41 pm

Re: Compile error for a do nothing program

Post by Billduck1302 »

A couple of questions.
1. I opened a known good program on an UNO, modified it and d/l it, and got the same error.
So I am thinking that the problem resides either with my computer or the software.
2. How do you update all library files?
3. What model of Laptop are you using? I am thinking of having a dedicated computer for Flowcode.

Billduck1302
Posts: 8
Joined: Fri Dec 06, 2024 4:41 pm

Re: Compile error for a do nothing program

Post by Billduck1302 »

The C code is too large of a file to post . Even for "Hello World"

Steve-Matrix
Matrix Staff
Posts: 1416
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 193 times
Been thanked: 331 times

Re: Compile error for a do nothing program

Post by Steve-Matrix »

Billduck1302 wrote:
Thu Dec 12, 2024 7:19 pm
The C code is too large of a file to post . Even for "Hello World"
Sorry. By "post" I meant add then to a reply here as an attachment. You can either drag the file(s) across onto the area you type in or can use the attachment tab.

The C file should not be too large to be attached. The "Mega_LeafBatteryPackTrials.c" file produce when I compile your project is 101 kB and the "Mega_LeafBatteryPackTrials.msg.txt" file is just 8 kB.

If they are still too large, then you could zip them up and add the zip file.

Steve-Matrix
Matrix Staff
Posts: 1416
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 193 times
Been thanked: 331 times

Re: Compile error for a do nothing program

Post by Steve-Matrix »

Billduck1302 wrote:
Thu Dec 12, 2024 6:55 pm
1. I opened a known good program on an UNO, modified it and d/l it, and got the same error.
So I am thinking that the problem resides either with my computer or the software.
The information in the C and MSG.TXT files should help us determine what the issue is and we'll know more when we can view them.

Billduck1302 wrote:
Thu Dec 12, 2024 6:55 pm
2. How do you update all library files?
It's on the menu bar under "Help...Library Updates..."
Billduck1302 wrote:
Thu Dec 12, 2024 6:55 pm
3. What model of Laptop are you using? I am thinking of having a dedicated computer for Flowcode.
Flowcode does not need a particularly powerful computer or laptop to run. If it can run Windows 10, then it should run Flowcode fine.

Billduck1302
Posts: 8
Joined: Fri Dec 06, 2024 4:41 pm

Re: Compile error for a do nothing program

Post by Billduck1302 »

The c file is attached.
Attachments
HelloWorld1.txt
(71.17 KiB) Downloaded 41 times

Steve-Matrix
Matrix Staff
Posts: 1416
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 193 times
Been thanked: 331 times

Re: Compile error for a do nothing program

Post by Steve-Matrix »

Thanks. The syntax errors occur in the gLCD font routines. I don't know why this should happen though. Are your library files up-to-date?

Billduck1302
Posts: 8
Joined: Fri Dec 06, 2024 4:41 pm

Re: Compile error for a do nothing program

Post by Billduck1302 »

The library files are up to date. Thanks.

The only thing I know to do is to d/l FC 10 onto a new computer.

Post Reply