Page 1 of 1

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

Posted: Wed Sep 23, 2026 2:59 am
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

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

Posted: Wed Sep 23, 2026 7:21 am
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 603 times

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

Posted: Wed Sep 23, 2026 9:52 am
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?