Visual Studio找不到CPPUNIT调试数据库

时间:2023-01-13 10:21:46

I am using Visual Studio 2008 with CPPUNIT. I already compiled CPPUNIT and added the CPPUNIT path to Include and Library path. Currently, I can compile my program with CPPUNIT library.

我正在使用Visual Studio 2008和CPPUNIT。我已经编译了CPPUNIT并将CPPUNIT路径添加到Include和Library路径。目前,我可以用CPPUNIT库编译我的程序。

However, the linker generates the following warning:

但是,链接器会生成以下警告:

Warning 2 warning LNK4099: PDB 'vc90.pdb' was not found with 'C:\Program Files\cppunit\cppunit-1.12.1\lib\cppunitd.lib' or at 'c:\Users\hide1713\Desktop\3d_tank\cpp_pj\bin\vc90.pdb'; linking object as if no debug info cppunitd.lib GameUnitTest

警告2警告LNK4099:找不到PDB'vc90.pdb'与'C:\ Program Files \ cppunit \ cppunit-1.12.1 \ lib \ cppunitd.lib'或'c:\ Users \ hide1713 \ Desktop \ 3d_tank \ cpp_pj \ BIN \ vc90.pdb';链接对象,好像没有调试信息cppunitd.lib GameUnitTest

There's a cppunitd_dll.pdb file along with cppunitd.lib. How do I tell the linker where to find the CPPUNIT debug database?

有一个cppunitd_dll.pdb文件和cppunitd.lib。如何告诉链接器在哪里可以找到CPPUNIT调试数据库?

Thanks all.

1 个解决方案

#1


In your CppUnit project, be sure you have your compiler emitting a program database file that's compatible with your main project. In the CppUnit project properties window, under the Config properties / C++ / General tree, you'll see the Debug Information Format box. Select "Program Database /Zi" or whatever value exactly matches the same setting on your main project. You'll then have to recompile them both, of course.

在CppUnit项目中,请确保您的编译器发出的程序数据库文件与您的主项目兼容。在CppUnit项目属性窗口的Config properties / C ++ / General树下,您将看到Debug Information Format框。选择“程序数据库/ Zi”或任何与主项目上的相同设置完全匹配的值。当然,你必须重新编译它们。

#1


In your CppUnit project, be sure you have your compiler emitting a program database file that's compatible with your main project. In the CppUnit project properties window, under the Config properties / C++ / General tree, you'll see the Debug Information Format box. Select "Program Database /Zi" or whatever value exactly matches the same setting on your main project. You'll then have to recompile them both, of course.

在CppUnit项目中,请确保您的编译器发出的程序数据库文件与您的主项目兼容。在CppUnit项目属性窗口的Config properties / C ++ / General树下,您将看到Debug Information Format框。选择“程序数据库/ Zi”或任何与主项目上的相同设置完全匹配的值。当然,你必须重新编译它们。