Making it easier to use ImageMagick libraries on Windows
Posted: 2013-06-06T13:10:53-07:00
In viewtopic.php?f=1&t=8577
a user talked about confusion when trying to use the ImageMagick API
in Visual C++.
The standard answer he was given was "Just copy the project files from the demo directory",
but IMHO ImageMagick could do better than that.
Boost, for instance, provides very clear instructions
http://www.boost.org/doc/libs/1_46_0/mo ... st-library
Part of what makes life easier for casual Boost users is that their headers include pragmas like this:
#ifndef IMAGEMAGICK_NOAUTOLINK
#if DEBUG
#pragma comment(lib, "Core_DB_magick_.lib"
#else
#pragma comment(lib, "Core_RL_magick_.lib"
#endif
#endif
so users don't have to know or care what the individual libraries are named;
they only need to tell Visual C++ what directory they're in.
Would there be any interest in a patch adding this feature?
a user talked about confusion when trying to use the ImageMagick API
in Visual C++.
The standard answer he was given was "Just copy the project files from the demo directory",
but IMHO ImageMagick could do better than that.
Boost, for instance, provides very clear instructions
http://www.boost.org/doc/libs/1_46_0/mo ... st-library
Part of what makes life easier for casual Boost users is that their headers include pragmas like this:
#ifndef IMAGEMAGICK_NOAUTOLINK
#if DEBUG
#pragma comment(lib, "Core_DB_magick_.lib"
#else
#pragma comment(lib, "Core_RL_magick_.lib"
#endif
#endif
so users don't have to know or care what the individual libraries are named;
they only need to tell Visual C++ what directory they're in.
Would there be any interest in a patch adding this feature?