It seems that you are trying to link two plugins together. This isn't going to work.

Do you use qmake? If yes, did you use the same .pro file?