The #pragma library directive causes the compiler to insert an INCLUDELIB library search record into the object file. This tells the linker to pull in the appropriate libraries at link time.
where library_name is the default library to be made available for the program.
The library names specified by #pragma library are imbedded in INCLUDELIB library search records in the order that they are encountered in the source. The library search records are inserted into the object file before the default library search records, so that the behaviour at link time is the same as if the library name were specified at link time.