How to include sub-directories in Visual Studio?

后端 未结 4 1823
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 05:06

I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2005 edition) to set one include path that Visual Studio

4条回答
  •  深忆病人
    2021-02-04 05:40

    We haven't found a way of setting a recursive folder search in Visual Studio (though Xcode has no problem setting and using them). What we do is list all the directories in a file, and specify the file in the C/C++ Command Line additional options:

    @"IncludeFolders.rsp"

    We rarely find problems using recursive search, though an accidental inclusion of ``/'' did slow things down a bit once.

提交回复
热议问题