精華區beta EE_DSnP 關於我們 聯絡資訊
當我在bdd這個資料夾直接make以後 就出現這些錯誤訊息 In file included from bddCir.cpp:5: ../../include/gate.h:12:21: error: bddNode.h: 沒有此一檔案或目錄 ../../include/gate.h:37: error: 'BddNode' does not name a type ../../include/gate.h:71: error: 'BddNode' does not name a type ../../include/gate.h:84: error: 'BddNode' does not name a type ......... ......... bddCir.cpp: In member function 'void Circuit::buildBdd()': bddCir.cpp:14: error: 'class Gate' has no member named 'buildBdd' bddCir.cpp: At global scope: bddCir.cpp:20: error: no 'BddNode PiGate::buildBdd()' member function declared in class 'PiGate' bddCir.cpp:27: error: no 'BddNode PoGate::buildBdd()' member function declared in class 'PoGate' bddCir.cpp:34: error: no 'BddNode InvGate::buildBdd()' member function declared in class 'InvGate' ......... ......... 但是當我把直接下載的檔案在bdd的資料夾make以後 出現的也是相同的訊息 按照攻略上應該是做完這個步驟可以測了(是吧?) 我在bddCmd.h檔裡面也有include "cmdParser.h" 也有記得ifdef ifndef endif 那到底要怎麼弄呢? ---- 另外 BREPort -File <string fileName> 要怎麼 directs the output to file "fileName" 我找不到可以用的function ~"~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.247.20
ric2k1:很難回答你的第一個問題... 感覺上可能少掉什麼檔案, 01/12 16:49
ric2k1:或者是你在直接 make 一遍? (不要 make clean) 01/12 16:50
ric2k1:當然不會有 function 啊, 你可以 ifstream inf(fileName); 01/12 16:50
ric2k1:寫錯了, 是 ofstream outf(fileName); 然後 outf << ... 01/12 16:51
davidlue:那ofstream的參數,就用預設的ios::out囉~@@ 01/12 18:14