Saif Ur Rehman February 2016

Link errors with GraphicsMagick

I downloaded and compiled GraphicsMagick, 1.3.23, Q16, x64, StaticMT version. I had to convert the Visual Studio 7 solution generated by GraphicsMagick's build utility to Visual Studio 2015 format. I linked my project to CORE_DB_magick_.lib and CORE_DB_Magick++_.lib.

When the linker ran, it produced unresolved external symbols when linking InitializeMagick() and DestroyMagick()

1>wtd.lib(WebController.obj) : error LNK2019: unresolved external symbol __imp_DestroyMagick referenced in function "public: __cdecl Wt::WebController::~WebController(void)" (??1WebController@Wt@@QEAA@XZ)
1>wtd.lib(WebController.obj) : error LNK2019: unresolved external symbol __imp_InitializeMagick referenced in function "public: __cdecl Wt::WebController::WebController(class Wt::WServer &,class std::basic_string,class std::allocator > const &,bool)" (??0WebController@Wt@@QEAA@AEAVWServer@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z)

I can't understand why the symbols are not being linked. Any ideas?

Answers


Saif Ur Rehman February 2016

Apparently, GraphicsMagick Static versions do not link properly.

Post Status

Asked in February 2016
Viewed 3,059 times
Voted 7
Answered 1 times

Search




Leave an answer