[問題] 連結函式庫出現警告
開發平台(Platform): VC++ 2010
額外使用到的函數庫(Library Used): cppunit.lib
問題(Question):使用了 #pragma comment(lib,"cppunit.lib")
錯誤結果(Wrong Output):
警告 6 warning LNK4099: 找不到 PDB 'vc100.pdb' (有
'cppunit.lib(Asserter.obj)' 或位於 'C:\Users\xiaotie\Documents\Visual Studio
2010\Projects\LS HW3-10\Debug\vc100.pdb'),當做沒有偵錯資訊,連結物件
C:\Users\xiaotie\Documents\Visual Studio 2010\Projects\LS
HW3-10\LS\cppunit.lib(Asserter.obj)
程式碼(Code):
#include <CppUnit/TestCase.h>
#include <CppUnit/TestSuite.h>
#include <CppUnit/TestCaller.h>
#include <CppUnit/TestResult.h>
#include <cppunit/extensions/HelperMacros.h>
#pragma comment(lib,"cppunit.lib")
#include"cal_propagation_delay.h"
#include"cal_largest_propagation_delay.h"
#include"cal_smallest_propagation_delay.h"
#include"logic_simulator.h"
class logic_simulator_TEST:public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( logic_simulator_TEST );
CPPUNIT_TEST(testA);
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
void testA();
private:
device *a;
};
補充說明(Supplement):
出問題的是一個H檔
程式碼本身沒甚麼重點
問題是出在於#pragma comment(lib,"cppunit.lib")
不這樣載入cppunit.lib的話編譯不過
使用的話又會出現警告(共出現26個 意思都差不多)
請問有沒有人知道怎麼樣消掉警告
感謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.48.2
→
10/24 23:54, , 1F
10/24 23:54, 1F
推
10/24 23:57, , 2F
10/24 23:57, 2F
→
10/24 23:57, , 3F
10/24 23:57, 3F
→
10/24 23:58, , 4F
10/24 23:58, 4F
→
10/24 23:59, , 5F
10/24 23:59, 5F
→
10/25 00:00, , 6F
10/25 00:00, 6F
→
10/25 00:02, , 7F
10/25 00:02, 7F
→
10/25 00:04, , 8F
10/25 00:04, 8F
推
10/25 00:05, , 9F
10/25 00:05, 9F
→
10/25 00:06, , 10F
10/25 00:06, 10F
→
10/25 00:08, , 11F
10/25 00:08, 11F
→
10/25 00:10, , 12F
10/25 00:10, 12F
推
10/25 00:48, , 13F
10/25 00:48, 13F
→
10/25 00:49, , 14F
10/25 00:49, 14F
→
10/25 00:50, , 15F
10/25 00:50, 15F
→
10/25 10:13, , 16F
10/25 10:13, 16F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章