User Tools

Site Tools


link_pragmas_1.htm
Navigation:  Advanced Topics > Legacy Project System Reference >====== Link #pragmas ====== Previous pageReturn to chapter overviewNext page

#pragma link( <;filename> {,<;filename> } )

#pragma linkfirst( <;filename> )

These #pragmas may be specified in a project file, in which case the nominated files are added immediately to the link list. In addition, the link #pragma may be specified in a C or C++ source file, in which case the nominated files will be added to the link list when an autocompile command is executed in the Project System, if any files already on the link list had this #pragma specified. For example:

#pragma link( file1.obj, file2.obj, file3.lib )

#pragma linkfirst (initexe.obj)

If no extension is given .obj is assumed. Files specified using #pragma link are added to the end of the link list (unless already present). A file specified using #pragma linkfirst is linked before the link list. Only one file may be specified for each link using #pragma linkfirst.

link_pragmas_1.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1