<div class="gmail_quote">On Sun, Jun 14, 2009 at 7:06 PM, Steven Watanabe <span dir="ltr">&lt;<a href="mailto:watanabesj@gmail.com">watanabesj@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
AMDG<br>
<br>
Robert Dailey wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I&#39;m using Boost 1.39, and I&#39;m getting the following linker errors on MSVC9:<br>
<br>
MainWindow.obj : error LNK2019: unresolved external symbol<br>
&quot;__declspec(dllimport) class boost::system::error_category const &amp; __cdecl<br>
boost::system::get_system_category(void)&quot; (__imp_?get_system_category@system<br></div>
@boost@@YAABVerror_category@12@XZ) referenced in function &quot;&lt;snip&gt;<div class="im"><br>
<br>
The issues above don&#39;t really make any sense. The calling convention,<br>
according to the information above, is __cdecl, and in my project settings<br>
I&#39;m using cdecl as well. I found several posts about this on the mailing<br>
list but no solutions were offered that I could see. How can I resolve these<br>
issues? Note that I am using static libraries.<br>
 �<br>
</div></blockquote>
<br>
That&#39;s odd. �It looks like either BOOST_ALL_DYN_LINK or<br>
BOOST_SYSTEM_DYN_LINK is defined.</blockquote><div><br></div><div>Thanks�Steven,�bringing�up�this�point�made�me�double�check�my�preprocessor�directives,�and�sure�enough BOOST_ALL_DYN_LINK was�being�defined.�It�was�something�that�slipped�into�my�CMake�scripts by mistake.�Thanks�a�bunch�for�pointing out this issue for me!</div>
</div>