What is core.a (main.cpp.o) error in Arduino?

Is this the code that you’re trying to upload to the arduino? Every arduino sketch must consist of a setup() function and a loop() function. But we cannot see that here. May be you just shared the library here, not your complete arduino sketch.