开发者

Set #include directory from C++ code file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜