error C3389:_declspec(dllexport) on Windows Form Application

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
imagetester

error C3389:_declspec(dllexport) on Windows Form Application

Post 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 ?!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Comment out
  • # define ModuleExport __declspec(dllexport)
in magick/MagickCore.h and see if that fixes the problem.
imagetester

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

Post by imagetester »

Thanks but it didn't work ! Same error with 4255 warnings !!
Any ideas?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply