W8120 Base class of dllexport class should also be dllexport (C++)

From RAD Studio
Jump to: navigation, search

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

Base class of dllexport class should also be dllexport.

 class Base
 {
    public:
          Base(){};
 };
 class __declspec(dllexport) Derived : public Base
 {
    public:
          Derived(){};
 };
 int main(int , char** )
 {
     Derived d; // Warning
 }