Different compilers and IDEs have different methods for telling them how to link static libraries. There is no standard way to link a static library from code, but some compilers have special preprocessor directives for that. For example, VC++ has #pragma comment(lib, "").