Magick++ in VS2010 - unresolved external symbol

前端 未结 4 1072
孤独总比滥情好
孤独总比滥情好 2021-01-18 11:52

I\'m trying to use ImageMagick Magick++ for a C++ Project in VS2010. I installed the Library from here: klick

Then in my Project, I added c:/program files/ImageMagick

4条回答
  •  无人及你
    2021-01-18 12:44

    CORE_RL_Magick++_.lib does contain ?InitializeMagick@Magick@@YAXPEBD@Z, but not ?InitializeMagick@Magick@@YAXPBD@Z

    Using the undname.exe utility, these names undecorate to:

    void __cdecl Magick::InitializeMagick(char const *)
    void __cdecl Magick::InitializeMagick(char const * __ptr64)
    

    Note the __ptr64 declarator you got on the argument. You've got some kind of compile setting that turns that char* into a 64-bit pointer. Like compiling this code targeting a 64-bit operating system. But linking the 32-bit .lib. This normally generates a linker error about the bit-ness of the .lib being wrong, not so sure why you don't see this. Maybe a mingw artifact, not sure how it works.

提交回复
热议问题