Hi,
I'm trying to use the CGenericList class which is part of DirectShow.
I included the file required for its use but I still get the error:
error C2143: syntax error : missing ';' before '<'|
The error means that the compiler can't find the class definition.
So I figured that I must have a circular dependency problem but I don't know how to check for it?
I tried '#pragma once' too but it's still the same error.
CGenericList class (Windows)
Code:#include <windows.h> #include <Streams.h> #include <Dshow.h> class CRouting { public: class CRouting *pLeftRouting; class CRouting *pRightRouting; LONG VideoInputIndex; LONG VideoOutputIndex; LONG AudioInputIndex; LONG AudioOutputIndex; IAMCrossbar *pXbar; LONG InputPhysicalType; LONG OutputPhysicalType; LONG Depth; CRouting () {}; ~CRouting () {}; }; int main() { typedef CGenericList<CRouting> CRoutingList; return 0; }