Tried both, ar rcs libclass.a ... command and moved it my project folder and when running, it said it couldn't find -lclass. Then I just listed the object file in the other linker options section and it said it couldn't find reference to the function...
It's perhaps because it was compiled and made in Linux and I am trying to run it in windows.