The generated code by FC always fails to compile after recompilation.

For general Flowcode discussion that does not belong in the other sections.
Post Reply
17712885438
Posts: 44
http://meble-kuchenne.info.pl
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 3 times

The generated code by FC always fails to compile after recompilation.

Post by 17712885438 »

Copy the C code generated by FC exactly as it is, and then paste it back into the C code component of FC for compilation. Why can't the compilation pass? Always gets an error.例如:
Flowcode1.fcfx
(56.78 KiB) Downloaded 31 times
(view online)
。The C code within it is automatically generated by this LCD macro.Then copy it into the C code component for HEX compilation. The result has an error.
Flowcode1.msg.txt
(10.3 KiB) Downloaded 26 times

stefan.erni
Valued Contributor
Posts: 1305
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 246 times
Been thanked: 258 times

Re: The generated code by FC always fails to compile after recompilation.

Post by stefan.erni »

Hi

I think you should split up the C code and paste it here.

regards

Stefan

Use this:
2026-09-23_08-15-51.PNG
2026-09-23_08-15-51.PNG (113.23 KiB) Viewed 600 times

medelec35
Valued Contributor
Posts: 2486
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 796 times
Been thanked: 858 times

Re: The generated code by FC always fails to compile after recompilation.

Post by medelec35 »

Hello.
You can't copy and paste flowcode generated C code and expect it to compile.
For a start there will be duplicated Main and functions which the compiler will reject.
Why would you want to re-add generate code anyway?
Martin

Post Reply