开发者

Set #include directory from C++ code file

开发者 https://www.devze.com 2022-12-12 20:16 出处:网络
In MSVC++ you can always do #pragma comment( lib开发者_如何学Go, \"libname.lib\" ) TO link a library in from a code file, instead of fiddling with the project options dialog.

In MSVC++ you can always do

#pragma comment( lib开发者_如何学Go, "libname.lib" )

TO link a library in from a code file, instead of fiddling with the project options dialog.

I'm looking for a way to add "Additional Include Directories" from the code file instead of using Project Settings/Configuration Properties/C,C++/General/Additional Include Directories.

Is there a way to do this?


That's not possible. If you already know where the header is stored when you write the code then you should include the path in the #include directive.

0

精彩评论

暂无评论...
验证码 换一张
取 消