Why do I get error "inconsistent dll linkage" ?

This was so easy, so I made these changes
UCLASS(MinimalAPI) class Alex_test : public AActor ... FFliteTTSPlugin* flite;

and I called it like this flite->writefile();