In visual studio how to include all .libs in a folder

后端 未结 5 716
轮回少年
轮回少年 2020-12-31 06:20

I am trying to build a project with another project. There are a lot of libs in there and I am not sure where the required unreferenced symbols are present.

Is ther

5条回答
  •  被撕碎了的回忆
    2020-12-31 07:15

    AFAIK there is no way to do that: your options are to

    • include each lib in the linker->Input->Additional Dependencies

    • include libs via pragma directive in the source file i.e. add

    pragma comment(lib, "some_lib.lib" )

    • if the projects are part of the solution, you can select them as "Project Dependencies"

    The easiest way to do it is to use the pragma since you only have to do it once for both debug and release. For example, you could do a directory listing of your lib directory and then copy and past the remainder of the directive into your source file(s).

    Further, to get a symbol listing of a static library, you can run the dumpbin tool on the lib files (AFAIR with the /ALL option).

提交回复
热议问题