Magick++ Linking issues on VS2010 Win7

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
omenifighter
Posts: 1
Joined: 2014-12-04T16:58:48-07:00
Authentication code: 6789

Magick++ Linking issues on VS2010 Win7

Post by omenifighter »

when trying to compile the code I've written i get the following linking errors:

Error 1 error LNK2019: unresolved external symbol "public: struct MagickCore::_PixelPacket const * __thiscall Magick::Image::getConstPixels(long,long,unsigned int,unsigned int)const " (?getConstPixels@Image@Magick@@QBEPBU_PixelPacket@MagickCore@@JJII@Z) referenced in function "**** SOME_PROCESS ****" (****) ***.obj
Error 2 error LNK2019: unresolved external symbol "public: __thiscall Magick::Geometry::~Geometry(void)" (??1Geometry@Magick@@QAE@XZ) referenced in function "**** SOME_PROCESS ****" (****) ***.obj
Error 3 error LNK2019: unresolved external symbol "public: class Magick::Geometry __thiscall Magick::Image::size(void)const " (?size@Image@Magick@@QBE?AVGeometry@2@XZ) referenced in function "**** SOME_PROCESS ****" (****) ***.obj
Error 4 error LNK2019: unresolved external symbol "public: virtual __thiscall Magick::DrawableLine::~DrawableLine(void)" (??1DrawableLine@Magick@@UAE@XZ) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 5 error LNK2019: unresolved external symbol "public: __thiscall Magick::Drawable::~Drawable(void)" (??1Drawable@Magick@@QAE@XZ) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 6 error LNK2019: unresolved external symbol "public: void __thiscall Magick::Image::draw(class Magick::Drawable const &)" (?draw@Image@Magick@@QAEXABVDrawable@2@@Z) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 7 error LNK2019: unresolved external symbol "public: __thiscall Magick::Drawable::Drawable(class Magick::DrawableBase const &)" (??0Drawable@Magick@@QAE@ABVDrawableBase@1@@Z) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 8 error LNK2019: unresolved external symbol "public: virtual __thiscall Magick::Color::~Color(void)" (??1Color@Magick@@UAE@XZ) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 9 error LNK2019: unresolved external symbol "public: __thiscall Magick::Image::Image(class Magick::Geometry const &,class Magick::Color const &)" (??0Image@Magick@@QAE@ABVGeometry@1@ABVColor@1@@Z) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 10 error LNK2019: unresolved external symbol "public: __thiscall Magick::Geometry::Geometry(unsigned int,unsigned int,long,long,bool,bool)" (??0Geometry@Magick@@QAE@IIJJ_N0@Z) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 11 error LNK2019: unresolved external symbol "public: __thiscall Magick::Color::Color(char const *)" (??0Color@Magick@@QAE@PBD@Z) referenced in function "**** SOME_FUNCTION ****" ((****)) ***.obj
Error 12 error LNK2001: unresolved external symbol "public: virtual void __thiscall Magick::DrawableLine::operator()(struct MagickCore::_DrawingWand *)const " (??RDrawableLine@Magick@@UBEXPAU_DrawingWand@MagickCore@@@Z) ***.obj
Error 13 error LNK2001: unresolved external symbol "public: virtual class Magick::DrawableBase * __thiscall Magick::DrawableLine::copy(void)const " (?copy@DrawableLine@Magick@@UBEPAVDrawableBase@2@XZ) ***.obj
Error 14 error LNK2019: unresolved external symbol "public: virtual __thiscall Magick::DrawableBase::~DrawableBase(void)" (??1DrawableBase@Magick@@UAE@XZ) referenced in function "public: virtual void * __thiscall Magick::DrawableBase::`scalar deleting destructor'(unsigned int)" (??_GDrawableBase@Magick@@UAEPAXI@Z) ***.obj
Error 15 error LNK2019: unresolved external symbol "public: virtual __thiscall Magick::Image::~Image(void)" (??1Image@Magick@@UAE@XZ) referenced in function _main main.obj
Error 16 error LNK2019: unresolved external symbol "public: void __thiscall Magick::Image::display(void)" (?display@Image@Magick@@QAEXXZ) referenced in function _main main.obj
Error 17 error LNK2019: unresolved external symbol "public: __thiscall Magick::Image::Image(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Image@Magick@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main main.obj
Error 18 error LNK2019: unresolved external symbol "void __cdecl Magick::InitializeMagick(char const *)" (?InitializeMagick@Magick@@YAXPBD@Z) referenced in function _main main.obj
Error 19 error LNK1120: 18 unresolved externals ****.exe

What is the cause of this errors? I used the given installation for win7. Could it be that it did not add the proper paths to my enviros? What should I add to the projects properties to include the libraries (I assume) of Magick++?

Thanks in advance,
Neil Vexler

:)
Post Reply