Predeclarations of classes

Simon Lange s.lange@partec.com
Fri Apr 13 13:14:00 GMT 2012


hallo list,

converting a project from VisualC++ to GCC (4.6.1) the following problem  
occurs:

class A; //*

class B
{

public:
	
	A* a;
};


brings at line " //* " the error-message:

	"predeclaration of struct A"


it's a simple predeclaration ? any idea ??

thanks and best regards

Simon

-- 
Dr. Simon Lange
PARTEC GmbH
0341-9213491



More information about the Gcc-help mailing list