Magick StaticMT linking from a DLL ?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply

Magick StaticMT linking from a DLL ?

Post by scarletdiva » 2006-04-18T18:54:54-07:00

Hi Guys !! :wink:

I compiled the last magick6.2.7 to get static multitrheaded libraries.
I then tried the magick++ api in a simple console(.exe) application
and that was all good. wonderful package.

but then I tried to do the same from within a .dll and it doesn't work.
I mean I'm compiling a shader for a renderer as a dll. from there
I use the magick to get some output images not supported by the
renderer itself like psd.

first I have some weird warnings like..
warningC4251:'std::_List_nod<Ty, Alloc>::_Alnod':class"std::allocator
<_Ty>'needs to have dll-interface to be used by clients of class
'std::_List_nod<Ty, Alloc>

then I have linkage errors as the libraries are not really seen by
the compiler. but I have the same options for the project as in
the console projetct, execpt that this one will output a dll.

I'm on windowsXP and visualC++ 7.1 with magick6.2.7.
Anyone can help me ? :oops:

thanks in advance.



Post by scarletdiva » 2006-04-18T19:43:42-07:00

ok I found the problem...

under C/C++->codegeneration->runtimelibrary
do not set to MD (multithreadedDLL).

works now !! ;)


ps:: but what if I wanna an MD dll ?? :shock:

Post Reply