www.digitalmars.com         C & C++   DMDScript  

c++ - problems with forward declarations


while trying to get the log4cplus logging framework 
to compile with dmc (8.43) i got the following error message:

Error: stlport\_deque.h(91): size of DiagnosticContext is not known

the (simplified) code (from log4cplus/ndc.h) is:

#include <stack>

struct DiagnosticContext;
typedef std::stack<DiagnosticContext> DiagnosticContextStack;

class NDC
	DiagnosticContextStack* getPtr() { return m_ptr; }

	DiagnosticContextStack* m_ptr;

struct DiagnosticContext {
//	DiagnosticContext();

are there known issues with forward declarations ?

// Andre  -> afo <at> zlug <dot> org
// living on earth is expensive,but includes an annual free trip around the sun
Apr 30 2005