You need to link the code (or the library) that contains the implementation.
If you were given the source code for the implementation (analyse.cpp) then you can compile and link it into your executable.
If you were given a shared object / dll for the implementation, then you will need to link with the .so / .lib.
If you were given a static library then you will need to link with the .a / .lib.