I have problem using Borland C++ compiler in Eclipse, I want to pass address of one member function to constructor of another class which is friend of first class
PCB::PCB(Thread *t, long stack, int time, void (*method)())
I'm using method to find FP_SEG
and FP_OFF
, but it's giving me errors when I write
Thread::Thread (StackSize stackSize, Time timeSlice){
myPCB = new PCB(this, stackSize, timeSlice, run);
}
This is error I'm getting all the time:
Could not find a match for 'PCB::PCB(Thread * const,unsigned long,unsigned int,void)' in function Thread::Thread(unsigned long,unsigned int)