MS C++ compiler supports a #pragma comment(lib, "library.lib") directve, that causes the compiler to pass the quoted file name to the linker. The linker is expected to add this file name to the list of libraries to be searched for external symbols. Is there a similar mechanism in gcc/g++?