iden3 / circom

zkSnark circuit compiler
GNU General Public License v3.0
1.31k stars 253 forks source link

Duplicated callable symbol #225

Open numtel opened 9 months ago

numtel commented 9 months ago

I've got a circuit that imports two other circuits from other repositories that both import some overlapping templates from circomlib. I get many "Duplicated callable symbol" errors when trying to compile.

If I ignore the errors (by removing these lines from the compiler) it works great but I can't expect everyone who wants to work with my circuits to run a modified circom compiler.

Why is the compiler so inflexible about duplicated symbols? What about if the symbols are the same and they have the same name, no error?