作者ric2k1 (Ric)
看板EE_DSnP
標題[情報] 不能 make
時間Thu Oct 27 18:01:08 2011
似乎大家沒有注意到 "5. Tips you should know" 的第一點,
貼過來高調一下...
1. The reference code is NOT complete and thus cannot be compiled. To make it
“compile-able”, you should at least initialize the static data members of
class ModNum (i.e. the first TODO in “calcModNum.cpp”). However, even after
the code become compile-able, it cannot run (i.e. will crash). Please check
the TODO’s and implement some of them first.
所以如果你看到什麼關於 _varMap 的 linking error,
應該就是這個原因了!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.48.100
1F:推 Komemushisp:老師請問一下~ 一執行modCalc就跑出Registering... 10/27 18:10
2F:→ Komemushisp:...fails...exiting 也是跟這有關嗎?? 10/27 18:11
3F:推 vuluy:跟initcommon和initcalccmd有關,沒有register成功 10/27 18:12
4F:推 Komemushisp:可那不是本來就寫好的嗎?? 得改什麼地方才能register? 10/27 18:34
5F:推 vuluy:你確定一下initcalccmd有沒有寫好吧,那邊應該是自己寫的 10/27 18:44
6F:→ ric2k1:是 "Registering calc commands fails... exiting" 嗎? 10/27 18:53
7F:推 Komemushisp:解決了~ 謝謝!! 10/27 19:40