I'm trying to modify a library of a code and do not know exactly how to do it.
I'm modifying the .cpp file and I know (as I have read on the internet) that I should compile it to obtain the .a file, because the main.cpp uses the .a file.
I have written in the terminal the following command (founded on the internet):
gcc -o analysis.hpp -c analysis.cpp
but I still get an error.
Can someone explain me briefly which steps should I follow so as to compile it?
I don't think it's a problem of the code, because it had already been compiled (the researcher who used the code before me did it).
The thing is that I do not know how to compile it to obtain the .a file (I have added a simple calculation in a function defined in a library and I need to compile it in order to be able to use the new modified library)