Setting compiler and linker directories using pragma in Visual C ++

Is it possible in Visual C ++ to install additional include directories and additional libary libraries in the source code through pragma definitions (similar to #pragma comment (lib, "xxx.lib") to link to specific libraries)?

+3
source share
2 answers

The latest list of available pragmas for Visual C ++ is available here . I don’t see anything where the library paths or something else is indicated.

+4
source

There is no way to do this. This is a list of all supported pragma directives.

+1

Source: https://habr.com/ru/post/1729229/


All Articles