Compiling a source file

If I have a header file "test.h" and a corresponding source file "test.cpp", what are the steps I should follow so that I can construct a personal library out of these two files ans link and use the library in my other codes?

I am using Eclipse under Linux

I know I have to compile the source file test.cpp to a library such as test.a, but for some obscure reasons I cannot find out how to do this in eclipse.

Is there anyway out there, that makes it possible to do this with out a test.a file and by just using the test.cpp source file?

Thanks.
Topic archived. No new replies allowed.