作者Peter034 (Peter)
看板EE_DSnP
標題[問題] testBdd.cpp
時間Thu Jun 18 23:45:39 2009
我按照老師的攻略逐步寫到第(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
1F:推 micangela:可以直接在那個資料夾make !! 06/18 23:59
2F:→ Peter034:謝謝! 06/19 00:33
3F:推 ric2k1:請用 make, 然後不要加入 symbolic links for .h, 會出事 06/19 00:35
4F:→ Peter034:謝謝老師 06/19 02:06