Simple Plugin code does not compile [noob question?]

In your header file, before the UClass() line, try adding:

#define YOURPLUGIN_API DLLEXPORT