Boost logo

Boost Users :

Subject: [Boost-users] [Coroutine] Unresolved externals with VC2012
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2013-08-04 06:36:37


Hi,

the following simplest test code does not compile with Visual C++ 2012:

#include <boost/coroutine/all.hpp>

typedef boost::coroutines::coroutine<int()> Coro;

void coroFunc(Coro::caller_type& co)
{

}
int main()
{
  Coro c(coroFunc);
}

giving:

1>------ Build started: Project: coro_testbed, Configuration: Debug Win32
------
1>main.obj : error LNK2019: unresolved external symbol "public: static
unsigned int __cdecl
boost::coroutines::detail::standard_stack_allocator::default_stacksize(void)"
(?default_stacksize_at_standard_stack_allocator_at_detail@coroutines_at_boost@@SAIXZ)
referenced in function "public: __thiscall
boost::coroutines::attributes::attributes(void)" (??0attributes_at_coroutines
@boost@@QAE_at_XZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void
__thiscall
boost::coroutines::detail::standard_stack_allocator::allocate(struct
boost::coroutines::stack_context &,unsigned int)"
(?allocate_at_standard_stack_allocator_at_detail@coroutines_at_boost@
@QAEXAAUstack_context_at_34@I_at_Z) referenced in function "public: __thiscall
boost::coroutines::detail::stack_tuple<class
boost::coroutines::detail::standard_stack_allocator>::stack_tuple<class
boost::coroutines::detail::standard_stack_allocator>(class
boost::coroutines::detail::standard_stack_allocator const &,unsigned int)"
(??0?$stack_tuple_at_Vstandard_stack_allocator_at_detail@coroutines_at_boost@
@@detail_at_coroutines@boost@@QAE_at_ABVstandard_stack_allocator_at_123@I_at_Z)
1>main.obj : error LNK2019: unresolved external symbol "public: void
__thiscall
boost::coroutines::detail::standard_stack_allocator::deallocate(struct
boost::coroutines::stack_context &)" (?deallocate_at_standard_stack_allocator
@detail_at_coroutines@boost@@QAEXAAUstack_context_at_34@@Z) referenced in
function "public: __thiscall boost::coroutines::detail::stack_tuple<class
boost::coroutines::detail::standard_stack_allocator>::~stack_tuple<class
boost::coroutines::detail::standard_stack_allocator>(void)"
(??1?$stack_tuple_at_Vstandard_stack_allocator_at_detail@coroutines_at_boost@
@@detail_at_coroutines@boost@@QAE_at_XZ)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::coroutines::detail::coroutine_context::coroutine_context(void)"
(??0coroutine_context_at_detail@coroutines_at_boost@@QAE_at_XZ) referenced in
function "public: __thiscall boost::coroutines::detail::coroutine_base<int
__cdecl(void)>::coroutine_base<int __cdecl(void)>(void
(__cdecl*)(int),struct boost::coroutines::stack_context *,bool,bool)"
(??0?$coroutine_base@$$A6AHXZ_at_detail@coroutines_at_boost@@QAE_at_P6AXH
@ZPAUstack_context_at_23@_N2_at_Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::coroutines::detail::coroutine_context::coroutine_context(void
(__cdecl*)(int),struct boost::coroutines::stack_context *)"
(??0coroutine_context_at_detail@coroutines_at_boost@@QAE_at_P6AXH
@ZPAUstack_context_at_23@@Z) referenced in function "public: __thiscall
boost::coroutines::detail::coroutine_base<int
__cdecl(void)>::coroutine_base<int __cdecl(void)>(void
(__cdecl*)(int),struct boost::coroutines::stack_context *,bool,bool)"
(??0?$coroutine_base@$$A6AHXZ_at_detail@coroutines_at_boost@@QAE_at_P6AXH
@ZPAUstack_context_at_23@_N2_at_Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall
boost::coroutines::detail::coroutine_context::coroutine_context(class
boost::coroutines::detail::coroutine_context const &)"
(??0coroutine_context_at_detail@coroutines_at_boost@@QAE_at_ABV0123@@Z) referenced
in function "public: __thiscall
boost::coroutines::detail::coroutine_base<void
__cdecl(int)>::coroutine_base<void __cdecl(int)>(class
boost::coroutines::detail::coroutine_context const &,bool,bool)"
(??0?$coroutine_base@$$A6AXH_at_Z@detail_at_coroutines@boost@
@QAE_at_ABVcoroutine_context_at_123@_N1_at_Z)
1>main.obj : error LNK2019: unresolved external symbol "public: class
boost::coroutines::detail::coroutine_context & __thiscall
boost::coroutines::detail::coroutine_context::operator=(class
boost::coroutines::detail::coroutine_context const &)"
(??4coroutine_context_at_detail@coroutines_at_boost@@QAEAAV0123_at_ABV0123@@Z)
referenced in function "private: void __thiscall
boost::coroutines::detail::coroutine_object<int __cdecl(void),void
(__cdecl*)(class boost::coroutines::coroutine<void __cdecl(int),1> &),class
boost::coroutines::detail::standard_stack_allocator,class
std::allocator<class boost::coroutines::coroutine<int __cdecl(void),0>
>,class boost::coroutines::coroutine<void
__cdecl(int),1>,int,0>::enter_(void)" (?enter_@?$coroutine_object@
$$A6AHXZP6AXAAV?$coroutine@$$A6AXH_at_Z$00_at_coroutines@boost@
@@ZVstandard_stack_allocator_at_detail@23_at_V?$allocator_at_V?$coroutine@
$$A6AHXZ$0A@@coroutines_at_boost@@@std@@V123_at_H$0A@@detail_at_coroutines@boost@
@AAEXXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: int
__thiscall boost::coroutines::detail::coroutine_context::jump(class
boost::coroutines::detail::coroutine_context &,int,bool)"
(?jump_at_coroutine_context_at_detail@coroutines_at_boost@@QAEHAAV1234_at_H_N_at_Z)
referenced in function "private: void __thiscall
boost::coroutines::detail::coroutine_object<int __cdecl(void),void
(__cdecl*)(class boost::coroutines::coroutine<void __cdecl(int),1> &),class
boost::coroutines::detail::standard_stack_allocator,class
std::allocator<class boost::coroutines::coroutine<int __cdecl(void),0>
>,class boost::coroutines::coroutine<void
__cdecl(int),1>,int,0>::enter_(void)" (?enter_@?$coroutine_object@
$$A6AHXZP6AXAAV?$coroutine@$$A6AXH_at_Z$00_at_coroutines@boost@
@@ZVstandard_stack_allocator_at_detail@23_at_V?$allocator_at_V?$coroutine@
$$A6AHXZ$0A@@coroutines_at_boost@@@std@@V123_at_H$0A@@detail_at_coroutines@boost@
@AAEXXZ)
1>c:\users\bravo\documents\visual studio
2012\Projects\coro_testbed\Debug\coro_testbed.exe : fatal error LNK1120: 8
unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Regards,
Szymon

-- 
Szymon Gatner
The Lordz Games Studio
www.thelordzgamesstudio.com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net