Aerivium is correct as far as he goes. Obviously the first thing he mentioned -- you want to compile but not link your routines. Why not? Because you'll be linking them in with the other libraries. In fact, in gcc in linux which I use, you compile them with a command line like:
g++ -o myprogram.o -c myprogram.cc and then use ar as in ar mylib.a myprog.o. That is a static library which will be compiled into the final code. For a dynamic library -- sorry, I haven't done that.
Turbo C used to compile to object files (.obj) when I used them. Those are the same as .o files and you can link them into libraries.
If I were you, I would read the documentation on your compiler carefully.
Here are a couple of tutorials using versions of C I don't know much about.
http://www.hlrs.de/organization/tsc/services/tools/docu/kcc/tutorials/libraries.html
http://docs.sun.com/source/819-3690/Building.Libs.html
http://www.openismus.com/documents/linux/building_libraries/building_libraries.shtml