[問題] testBdd.cpp
我按照老師的攻略逐步寫到第(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
06/18 23:59, 1F
→
06/19 00:33, , 2F
06/19 00:33, 2F
推
06/19 00:35, , 3F
06/19 00:35, 3F
→
06/19 02:06, , 4F
06/19 02:06, 4F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):
問題
2
4