I found out the reason. In former versions, the default constructor is generated automatically in the header file but not in new versions. My problem is solved by adding the declaration of default constructor in the header file.
I found out the reason. In former versions, the default constructor is generated automatically in the header file but not in new versions. My problem is solved by adding the declaration of default constructor in the header file.