ofxffgl and ofxOpenCv on windows in visual 2010, dllMain link problem

Hi guys,

I’m trying to write a plugin for Resolume, using the ofxFFGL addon.
I have a working version on OSX but I get stranded on Windows with visual studio 2010.

Whatever I do, Visual Studio won’t compile my project when it contains both the ofxFFGL and the ofxOpenCV addon telling me there’s a link error:

1>cxcore110d.lib(cxerror.obj) : error LNK2005: _DllMain@12 already defined in FFGLPluginInfoData.obj  

as far as I can tell , both ofxFFGL and ofxOpenCV (or openCV?) have a dllMain function. but I can’t find them both.

Has anyone got an idea on how to fix this?

thnx in advance