Closed StefanosChaliasos closed 1 year ago
Hi!
Thank you for reporting this issue. We have solved it in our last release (v2.1.6). In the current version if the name of the circuit is main.circom
(or any of the other reserved names) and the --c flag is activated, we rename the file adding _c at the end of the name and print a warning. This way, if the circuit is named main.circom
and the --c flag is used, then the generated files are renamed to main_c
Great! Thanks a lot!
If you save any circuit in a file named
main.circom
and use the--c
option, the compiler will produce malformed cpp files. As a quick fix, I propose just printing a warning message when someone tries to use--c
with a file calledmain.circom
(and maybe adding a warning in the documentation).