Auto-linking
From Wikipedia, the free encyclopedia
| This article is an orphan, as few or no other articles link to it. Please introduce links to this page from related articles; suggestions may be available. (February 2009) |
Auto-linking is a mechanism for automatically determining which libraries to link to while building a C or C++ program. It is activated by means of #pragma comment(lib, <name>) statements in the header files of the library.
Most Windows compilers support auto-linking, while GCC does not support auto-linking [1].
[edit] External references
- You can use #pragma comment(lib...) to specify linker options - Microsoft support
- Pragma directives - MSDN