Show: Delphi C++
Display Preferences

#pragma link

From RAD Studio
Jump to: navigation, search

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:

So if you omit the .ext, then the correct extension is automatically used according to your current target platform.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance