Closed
Description
This global variables in math.py:
from lpython import i8, i16, i32, f32, i64, f64, ccall, overload
pi: f64 = 3.141592653589793238462643383279502884197
e: f64 = 2.718281828459045235360287471352662497757
tau: f64 = 6.283185307179586
Cause the following linker errors using the C backend if compiling and linking more than one file:
duplicate symbol '_pi_64' in:
CMakeFiles/a.dir/a.c.o
b/b.mod.a(b.c.o)
duplicate symbol '_pi_32' in:
CMakeFiles/a.dir/a.c.o
b/b.mod.a(b.c.o)
ld: 2 duplicate symbols for architecture arm64