Skip to main content
Participant
July 11, 2014
Answered

Getting Linker errors while porting InDesign CC plugin code to InDesign CC 2014

  • July 11, 2014
  • 1 reply
  • 1763 views

Hello,

I am getting following linker errors during porting of plugin code from InDesign CC to InDesign CC 2014

> PlugInStatics.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'posix_category''(void)" (??__Eposix_category@system@boost@@YAXXZ)

> PlugInStatics.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ)

I am using following environment :

OS : Windows 7 SP1 (64bit)

Visual Studio : VS 2013 with platform tool set = Visual Studio 2010 (v100)

InDesign SDK : InDesign CC 2014 plugin SDK (070)

Boost Libraries : 1.55

I have added external boost library paths in visual studio -> Linker properties -> Additional Library paths, still above linker errors persists, can someone help ?

Thanks,

-Harsh.

This topic has been closed for replies.
Correct answer Bartek_Kropaczewski

You can include macro definition

BOOST_SYSTEM_NO_DEPRECATED

or do it like adobe expert and include folowing macros

BOOST_ALL_DYN_LINK;BOOST_REGEX_USE_CPP_LOCALE;BOOST_REGEX_RECURSIVE;BOOST_HAS_ICU=1;BOOST_FILESYSTEM_VERSION=3;BOOST_CHRONO_HEADER_ONLY;BOOST_SIGNALS_NO_DEPRECATION_WARNING;

Regards

Bartek

1 reply

Bartek_Kropaczewski
Bartek_KropaczewskiCorrect answer
Inspiring
July 11, 2014

You can include macro definition

BOOST_SYSTEM_NO_DEPRECATED

or do it like adobe expert and include folowing macros

BOOST_ALL_DYN_LINK;BOOST_REGEX_USE_CPP_LOCALE;BOOST_REGEX_RECURSIVE;BOOST_HAS_ICU=1;BOOST_FILESYSTEM_VERSION=3;BOOST_CHRONO_HEADER_ONLY;BOOST_SIGNALS_NO_DEPRECATION_WARNING;

Regards

Bartek

Participant
July 11, 2014

Thanks a lot Bartek, This resolved my lnker errors !