Jump to content

Auto-linking

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Kku (talk | contribs) at 09:02, 6 October 2017 (dist. automatic hyperlinking). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Auto-linking is a mechanism for automatically determining which libraries to link to while building a C, C++ or Obj-C program. It is activated by means of #pragma comment(lib, <name>) statements in the header files of the library, or @import <name> depending on the compiler.

Most Windows compilers support auto-linking, as does Clang, while GCC does not support auto-linking [1]