楼主:
zero221 (zero)
2008-10-27 21:01:53我已经修改所有要修改的档案了。(Thread.h,Thread.cc,Scheduler.h,Scheduler.cc)
但是在make的时候跳出error:
../threads/scheduler.cc: In constructor'Scheduler::Scheduler()':
error: no matching function for call to 'SortedList<Thread*>::SortedList(
<unresolved overloaded function type>)'
../lib/list.h:94: note:candidates are: SortedList<Thread*>::SortedList(
int(*)(T,T))[with T=Thread*]
../lib/list.h:92: note: SortedList<Thread*>::SortedList(const SortedList
<Thread*>&)
老实说除了看出应该是new SortedList时有问题我看不懂error讯息
我有写 readyList= new SortedList<Thread *>(Scom);(我参考libtest写的)
以及在scheduler.cc有写 int Scom(Thread *x,Thread *y){...}
希望助教可以告诉我错在哪里,谢谢