V
vertigo
Hello
I have QueueHandler.h:
#include "Queue.h"
class Queue;
class QueueHandler{
....
Queue *ptrQ;
}
And in file Queue.h:
class QueueHandler;
class Queue{
QueueHandler *ptrH;
}
the problem durring compilation is in Queue.cpp when i want to call
method on QueueHandler (ptrH) object:
Queue.cpp error: invalid use of undefined type of 'struct QueueHandler'
Queue.h error: forward declaration of 'struct QueueHandler'
What can i do to solve this problem ?
Thanx
Michal
I have QueueHandler.h:
#include "Queue.h"
class Queue;
class QueueHandler{
....
Queue *ptrQ;
}
And in file Queue.h:
class QueueHandler;
class Queue{
QueueHandler *ptrH;
}
the problem durring compilation is in Queue.cpp when i want to call
method on QueueHandler (ptrH) object:
Queue.cpp error: invalid use of undefined type of 'struct QueueHandler'
Queue.h error: forward declaration of 'struct QueueHandler'
What can i do to solve this problem ?
Thanx
Michal