作者ric2k1 (Ric)
看板EE_DSnP
标题[情报] HW#3 compilation
时间Wed Apr 2 20:17:42 2008
请注意, 所附给大家的 source code 是未完成的, 所以无法 compile.
请将 TODO 的部份检查一下, 不管有没有用到, 都要定义一下,
大不了写一个空的 funciton 或是 return true,
否则最後 linking 时会有许多的 errors.
请不要随意搬动 source code 的位置/目录,
免的造成我们 compile 你的 code 时的问题.
谢谢合作.
※ 引述《hoghcmkcm (HOG)》之铭言:
: 我把constructor写好
: overload写好
: 想说test.cpp 没用到其他的
: 就去 make test
: 结果跑出一堆error
: 其中还有一行...
: test.cpp:56: undefined reference to `std::cout'
: 好怪@@
: 後来我把test.cpp 般到calc目录下
: util.h也搬过去
: 用g++ -c calcModNum.cpp
: g++ -c test.cpp
: g++ test.o calcModNum.o
: ./a.out
: 结果是想看到的
: setting modulus...
: num[0] = ...
: .......
: why? 我这样写算是对了吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.121.130.50
1F:推 hoghcmkcm:我make到test底下的makefile@@ 04/02 21:37
2F:→ hoghcmkcm:在hw3底下的makefile就ok了 04/02 21:38
3F:→ ric2k1:I see... 04/02 22:21