Page 1 of 1

Magick StaticMT linking from a DLL ?

Posted: 2006-04-18T18:54:54-07:00
by scarletdiva
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.


scarlet

Posted: 2006-04-18T19:43:42-07:00
by scarletdiva
ok I found the problem...

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

works now !! ;)

scarlet


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