<div dir="ltr">Hi,<div><br></div><div>the following simplest test code does not compile with Visual C++ 2012:</div><div><br></div><div><div>#include &lt;boost/coroutine/all.hpp&gt;</div><div><br></div><div>typedef boost::coroutines::coroutine&lt;int()&gt; Coro;</div>
<div><br></div><div>void coroFunc(Coro::caller_type&amp; co)</div><div>{</div><div><br></div><div>}</div><div>int main()</div><div>{</div><div>  Coro c(coroFunc);</div><div>}</div><div><br></div><div>giving:</div><div><br>
</div><div><div>1&gt;------ Build started: Project: coro_testbed, Configuration: Debug Win32 ------</div><div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: static unsigned int __cdecl boost::coroutines::detail::standard_stack_allocator::default_stacksize(void)&quot; (?default_stacksize@standard_stack_allocator@detail@coroutines@boost@@SAIXZ) referenced in function &quot;public: __thiscall boost::coroutines::attributes::attributes(void)&quot; (??0attributes@coroutines@boost@@QAE@XZ)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall boost::coroutines::detail::standard_stack_allocator::allocate(struct boost::coroutines::stack_context &amp;,unsigned int)&quot; (?allocate@standard_stack_allocator@detail@coroutines@boost@@QAEXAAUstack_context@34@I@Z) referenced in function &quot;public: __thiscall boost::coroutines::detail::stack_tuple&lt;class boost::coroutines::detail::standard_stack_allocator&gt;::stack_tuple&lt;class boost::coroutines::detail::standard_stack_allocator&gt;(class boost::coroutines::detail::standard_stack_allocator const &amp;,unsigned int)&quot; (??0?$stack_tuple@Vstandard_stack_allocator@detail@coroutines@boost@@@detail@coroutines@boost@@QAE@ABVstandard_stack_allocator@123@I@Z)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall boost::coroutines::detail::standard_stack_allocator::deallocate(struct boost::coroutines::stack_context &amp;)&quot; (?deallocate@standard_stack_allocator@detail@coroutines@boost@@QAEXAAUstack_context@34@@Z) referenced in function &quot;public: __thiscall boost::coroutines::detail::stack_tuple&lt;class boost::coroutines::detail::standard_stack_allocator&gt;::~stack_tuple&lt;class boost::coroutines::detail::standard_stack_allocator&gt;(void)&quot; (??1?$stack_tuple@Vstandard_stack_allocator@detail@coroutines@boost@@@detail@coroutines@boost@@QAE@XZ)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: __thiscall boost::coroutines::detail::coroutine_context::coroutine_context(void)&quot; (??0coroutine_context@detail@coroutines@boost@@QAE@XZ) referenced in function &quot;public: __thiscall boost::coroutines::detail::coroutine_base&lt;int __cdecl(void)&gt;::coroutine_base&lt;int __cdecl(void)&gt;(void (__cdecl*)(int),struct boost::coroutines::stack_context *,bool,bool)&quot; (??0?$coroutine_base@$$A6AHXZ@detail@coroutines@boost@@QAE@P6AXH@ZPAUstack_context@23@_N2@Z)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: __thiscall boost::coroutines::detail::coroutine_context::coroutine_context(void (__cdecl*)(int),struct boost::coroutines::stack_context *)&quot; (??0coroutine_context@detail@coroutines@boost@@QAE@P6AXH@ZPAUstack_context@23@@Z) referenced in function &quot;public: __thiscall boost::coroutines::detail::coroutine_base&lt;int __cdecl(void)&gt;::coroutine_base&lt;int __cdecl(void)&gt;(void (__cdecl*)(int),struct boost::coroutines::stack_context *,bool,bool)&quot; (??0?$coroutine_base@$$A6AHXZ@detail@coroutines@boost@@QAE@P6AXH@ZPAUstack_context@23@_N2@Z)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: __thiscall boost::coroutines::detail::coroutine_context::coroutine_context(class boost::coroutines::detail::coroutine_context const &amp;)&quot; (??0coroutine_context@detail@coroutines@boost@@QAE@ABV0123@@Z) referenced in function &quot;public: __thiscall boost::coroutines::detail::coroutine_base&lt;void __cdecl(int)&gt;::coroutine_base&lt;void __cdecl(int)&gt;(class boost::coroutines::detail::coroutine_context const &amp;,bool,bool)&quot; (??0?$coroutine_base@$$A6AXH@Z@detail@coroutines@boost@@QAE@ABVcoroutine_context@123@_N1@Z)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: class boost::coroutines::detail::coroutine_context &amp; __thiscall boost::coroutines::detail::coroutine_context::operator=(class boost::coroutines::detail::coroutine_context const &amp;)&quot; (??4coroutine_context@detail@coroutines@boost@@QAEAAV0123@ABV0123@@Z) referenced in function &quot;private: void __thiscall boost::coroutines::detail::coroutine_object&lt;int __cdecl(void),void (__cdecl*)(class boost::coroutines::coroutine&lt;void __cdecl(int),1&gt; &amp;),class boost::coroutines::detail::standard_stack_allocator,class std::allocator&lt;class boost::coroutines::coroutine&lt;int __cdecl(void),0&gt; &gt;,class boost::coroutines::coroutine&lt;void __cdecl(int),1&gt;,int,0&gt;::enter_(void)&quot; (?enter_@?$coroutine_object@$$A6AHXZP6AXAAV?$coroutine@$$A6AXH@Z$00@coroutines@boost@@@ZVstandard_stack_allocator@detail@23@V?$allocator@V?$coroutine@$$A6AHXZ$0A@@coroutines@boost@@@std@@V123@H$0A@@detail@coroutines@boost@@AAEXXZ)</div>
<div>1&gt;main.obj : error LNK2019: unresolved external symbol &quot;public: int __thiscall boost::coroutines::detail::coroutine_context::jump(class boost::coroutines::detail::coroutine_context &amp;,int,bool)&quot; (?jump@coroutine_context@detail@coroutines@boost@@QAEHAAV1234@H_N@Z) referenced in function &quot;private: void __thiscall boost::coroutines::detail::coroutine_object&lt;int __cdecl(void),void (__cdecl*)(class boost::coroutines::coroutine&lt;void __cdecl(int),1&gt; &amp;),class boost::coroutines::detail::standard_stack_allocator,class std::allocator&lt;class boost::coroutines::coroutine&lt;int __cdecl(void),0&gt; &gt;,class boost::coroutines::coroutine&lt;void __cdecl(int),1&gt;,int,0&gt;::enter_(void)&quot; (?enter_@?$coroutine_object@$$A6AHXZP6AXAAV?$coroutine@$$A6AXH@Z$00@coroutines@boost@@@ZVstandard_stack_allocator@detail@23@V?$allocator@V?$coroutine@$$A6AHXZ$0A@@coroutines@boost@@@std@@V123@H$0A@@detail@coroutines@boost@@AAEXXZ)</div>
<div>1&gt;c:\users\bravo\documents\visual studio 2012\Projects\coro_testbed\Debug\coro_testbed.exe : fatal error LNK1120: 8 unresolved externals</div><div>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div>
</div><div><br></div><div><br></div><div>Regards,</div><div>Szymon</div><div><br></div>-- <br>Szymon Gatner<br>The Lordz Games Studio<br><a href="http://www.thelordzgamesstudio.com" target="_blank">www.thelordzgamesstudio.com</a>
</div></div>

