cannot export 'identifier': a previous declaration did not export it
The given identifier is declared to be exported, but a previous declaration does not export it. Declarations of an identifier must be all external or all nonexternal.
Example
extern int i; // i not exported int __declspec(dllexport) i; // error, i exported