Passing names of libraries to linker.

Angel Tsankov fn42551@fmi.uni-sofia.bg
Wed Jun 29 18:37:00 GMT 2005


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++? 




More information about the Gcc-help mailing list