Error in Studio.h when compiling under Windows

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mootools
Posts: 19
Joined: 2005-06-30T06:08:40-07:00
Location: France

Error in Studio.h when compiling under Windows

Post by mootools » 2006-04-03T08:06:14-07:00

Hello,

This error applies in magick 6.2.6 under Windows in multithreaded DLL runtimes.

There is an error in the studio.h file.

In that config magick is statically linked to my application, and no DLL are needed, and magick shouldn't look for extension module.

This is where studio.h defines are false and the following lines:

#if defined(HasLTDL) || (defined(__WINDOWS__) && defined(_DLL))
# define SupportMagickModules
#endif

should be replaced by

#if defined(HasLTDL) || (defined(__WINDOWS__) && defined(_DLL) && !defined(_LIB))
# define SupportMagickModules
#endif

This change disables dynamic modules and avoid the call to OpenModules function.

Note that the same modification should be done in the studio.h file contained in Wand folder.

I hope this helps,
Manuel Jouglet
Mootools

Post Reply