gpt4 book ai didi

c++ - 如何将没有调试符号的静态库链接到在 VS 2008 上进行调试的可执行文件?

转载 作者:塔克拉玛干 更新时间:2023-11-03 08:00:56 26 4
gpt4 key购买 nike

我想消除在将第三方静态库与我的项目链接在一起时收到的一些编译器警告。自从我开发它以来,我一直在 Debug模式下编译它,但是第三方库是一个没有符号的外部库。

编译器显示以下警告:warning LNK4099: PDB 'vc90.pdb' was not found with ...

我可以解决这个警告而不忽略它吗?如果我不需要调试它们,为什么我还需要将静态库与调试符号链接(symbolic link)起来。

最佳答案

从这里引用:Linker Tools Warning LNK4099

You could also compile with /Z7, so the pdb doesn't need to be used, or remove the /DEBUG linker option if you do not have .pdb files for the objects you are linking.

关于c++ - 如何将没有调试符号的静态库链接到在 VS 2008 上进行调试的可执行文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7160090/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com