> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 17, 2007 4:57 PM
> To: [email protected]; [EMAIL PROTECTED]
> Subject: Re: [magick-users] Compiling against magick under 
> windows (visual 2005)
> 
> > I'm trying to build the library under windows with visual 
> studio 2005
> 
> We build under visual studio 2005. We run into a strange bug 
> in the IDE where it stops building and if we restart the 
> build a few times it will complete.  It never stops in the same place.
> 

Ok, I got a partial solution. It turns out that the Magick++ headers (Image.h)
specifically default to look for the dll version of the library even when built
statically (I would guess that this is either a bug or that my headers don't
match the libraries). I solved this by defining _LIB when compiling the program
which includes Magick++

Things now link fine except for the linking error (also relevant to magic,
specifically to Magick++), something about redefining basic_string

msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
>::~basic_string<char,struct std::char_traits<char>,class std::allocator<char>
>(void)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL 
PROTECTED]) already
defined in CORE_RL_Magick++_.lib(Image.obj)
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
>::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
>(char const *)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL 
PROTECTED]@Z)
already defined in CORE_RL_Magick++_.lib(Image.obj)

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to