Description
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.
Syntax
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.
For example,
#pragma library("treasure.dll")
![]()
Preprocessor
Directives - An Overview
Preprocessor
Directive - #pragma
