[問題] testBdd.cpp

看板EE_DSnP作者 (Peter)時間16年前 (2009/06/18 23:45), 編輯推噓2(202)
留言4則, 3人參與, 最新討論串1/2 (看更多)
我按照老師的攻略逐步寫到第(vi) 準備要測試testBdd.cpp 要compile的時候 抱怨說找不到一些file 然後發現老師bdd/test裡面的symbolic link好像少建了 bddMgr.h bddNode.h myHash.h 於是我手動用 ln -s 建完以上三個symbolic link 之後 就可以繼續compile 接著出現了大量難解的錯誤訊息... ================================== /tmp/cczlKUm3.o: In function `initBdd(unsigned int, unsigned int, unsigned int)':testBdd.cpp:(.text+0x1c4): undefined reference to `BddNode::_debugBddAddr' testBdd.cpp:(.text+0x1cb): undefined reference to `BddNode::_debugRefCount' testBdd.cpp:(.text+0x1d8): undefined reference to `BddMgr::reset()' testBdd.cpp:(.text+0x1f9): undefined reference to `BddMgr::init(unsigned int, unsigned int, unsigned int)'/tmp/cczlKUm3.o: In function `main':testBdd.cpp:(.text+0x272): undefined reference to `BddNode::BddNode(BddNode const&)' testBdd.cpp:(.text+0x298): undefined reference to `BddNode::BddNode(BddNode const&)' testBdd.cpp:(.text+0x2be): undefined reference to `BddNode::BddNode(BddNode const&)' testBdd.cpp:(.text+0x2e4): undefined reference to `BddNode::BddNode(BddNode const&)' testBdd.cpp:(.text+0x30a): undefined reference to `BddNode::BddNode(BddNode const&)' testBdd.cpp:(.text+0x32c): undefined reference to `BddNode::operator&(BddNode const&) const'testBdd.cpp:(.text+0x345): undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, BddNode const&)'testBdd.cpp:(.text+0x377): undefined reference to `BddNode::operator|(BddNode const&) const'testBdd.cpp:(.text+0x390): undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, BddNode const&)'testBdd.cpp:(.text+0x3d1): undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, BddNode const&)' testBdd.cpp:(.text+0x32c): undefined reference to `BddNode::operator&(BddNode const&) const' testBdd.cpp:(.text+0x345): undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, BddNode const&)' testBdd.cpp:(.text+0x377): undefined reference to `BddNode::operator|(BddNode const&) const' testBdd.cpp:(.text+0x390): undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, BddNode const&)' testBdd.cpp:(.text+0x3d1): undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, BddNode const&)' .... (後略 大部分都是一堆undefined reference) ================================= 不是很懂是什麼意思 想請教一下這可能是哪裡出了什麼問題? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.166.235.152

06/18 23:59, , 1F
可以直接在那個資料夾make !!
06/18 23:59, 1F

06/19 00:33, , 2F
謝謝!
06/19 00:33, 2F

06/19 00:35, , 3F
請用 make, 然後不要加入 symbolic links for .h, 會出事
06/19 00:35, 3F

06/19 02:06, , 4F
謝謝老師
06/19 02:06, 4F
文章代碼(AID): #1AEc4aeJ (EE_DSnP)
討論串 (同標題文章)
文章代碼(AID): #1AEc4aeJ (EE_DSnP)