E2281 Identifier1 requires definition of Identifier2 as a pointer type (Did you #include <%s>?) (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


To use Identifier1, there needs to be a definition for Identifier2, which is a type.

The following code is an example where __classid is the first identifier, and TClass, which can be found in System.hpp, is the second one:

 struct __declspec(delphiclass)bar
 {
      virtual int barbara(void);
 };
 void *foo(void)
 {
      return __classid(bar);    // Error
 }