C++ Factory Class Compile Error

I want to create factory class to plugin and i have compile error

Do you have any more info, such as code example or the error you are getting. The question is very broad.