#pragma link
Go Up to Pragma Directives Overview Index
Syntax (See Pseudo-grammar)
#pragma link "[path]modulename[.ext]"
Description
The #pragma link
directive instructs the linker to link the specified file into an executable file.
Use the path argument to specify a directory. By default, the linker searches for modulename in the local directory and in any path specified by the -L option of the linker.
Do not specify the file extension (.ext
) of modulename, as long as you are using default file types. The linkers assume the following default values for the file extension (.ext
) of modulename:
.obj
extension for BCC32.o
extension for:
So if you omit the .ext
, then the correct extension is automatically used according to your current target platform.