作者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