I'd like to create a plugin that uses another plugin. All of my plugins work fine on their own but when I try to use one from another, I get the following link error:

unresolved external symbol "public: static struct QMetaObject const FCSButton::staticMetaObject" (?staticMetaObject@FCSButton@@2UQMetaObject@@B)

FCSButton is a custom button plugin that I'd like to use inside of a custom spinbox plugin. The button works fine when using it in a regular widget in a normal app.

My guess is that the preprocessor definitions used to create a plugin are not compatible with using a plugin. It's telling the compiler to export the custom button when it should be importing it. But, I can't find the right combination of definitions to make it work.

I'm on Windows using Visual Studio 6 with QT 4.1.0-rc1

Thanks,
Luis Rodriguez