Page 1 of 1

error C3389:_declspec(dllexport) on Windows Form Application

Posted: 2008-08-04T23:42:56-07:00
by imagetester
I'm trying to build an interface on Visual C++ CLR usign Windows Form Application.
But as soon as i've included Magick++.h, I've got something like 4000 warning and one error:
c:\program files\imagemagick-6.4.2-q16\include\magick/module.h(66) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
How can i solve this issue ?!

Re: error C3389:_declspec(dllexport) on Windows Form Application

Posted: 2008-08-05T10:41:56-07:00
by magick
Comment out
  • # define ModuleExport __declspec(dllexport)
in magick/MagickCore.h and see if that fixes the problem.

Re: error C3389:_declspec(dllexport) on Windows Form Application

Posted: 2008-08-05T23:14:34-07:00
by imagetester
Thanks but it didn't work ! Same error with 4255 warnings !!
Any ideas?

Re: error C3389:_declspec(dllexport) on Windows Form Application

Posted: 2008-08-06T07:49:36-07:00
by magick
We have not seen this problem before so we're not sure how to fix it. You could try removing the build options clr:pure or /clr:safe from your configuration or try changing ModuleExport to MagickExport and see if that helps.