Forums - Link Error

1 post / 0 new
Link Error
Eric.CW_Chang
Join Date: 29 May 16
Posts: 2
Posted: Sun, 2017-08-13 23:51
Hi
I'm trying to use the libsymphony.lib of Symphony SDK(v1.1.2) in my Visual Studio 2015 test project(Win32 console application).
My project is x86, so I have linked libsymphony.lib of i386-windows folder. 
 
I have followed sections 2.4 "Microsoft Windows" of "symphony-1.1.2-refman-EN.pdf",
and added the path of Symphony include and lib folder in my test project and set Multi-threaded (/MT).  
 
When I'm running the sections 3.1 "Writing your first Symphony program",
I get the below errors:
 
 
 
In release mode of test project(x86):
error LNK2001: unresolved external symbol "void __cdecl symphony::internal::task_allocator::deallocate(class symphony::internal::task *)" (?deallocate@task_allocator@internal@symphony@@YAXPAVtask@23@@Z)
 
error LNK2001: unresolved external symbol "char * __cdecl symphony::internal::task_allocator::allocate(unsigned int)" (?allocate@task_allocator@internal@symphony@@YAPADI@Z)
 
 
 
In debug mode of test project(x86):
error LNK2019: unresolved external symbol "char * __cdecl symphony::internal::task_allocator::allocate(unsigned int)" (?allocate@task_allocator@internal@symphony@@YAPADI@Z) referenced in function "private: static class symphony::internal::cputask_arg_layer<void __cdecl(void)> * __cdecl symphony::internal::cputask_factory::create_task_impl<class symphony::internal::cputask_arg_layer<void __cdecl(void)>,struct symphony::internal::task_type_info<class <lambda_302590546695ae0d2ca048a7b2dc98c3>,0>,class <lambda_302590546695ae0d2ca048a7b2dc98c3> &>(class symphony::internal::task_internal::state_snapshot,class symphony::internal::group *,class symphony::internal::legacy::task_attrs,class <lambda_302590546695ae0d2ca048a7b2dc98c3> &)" (??$create_task_impl@V?$cputask_arg_layer@$$A6AXXZ$$V@internal@symphony@@U?$task_type_info@V<lambda_302590546695ae0d2ca048a7b2dc98c3>@@$0A@@23@AAV<lambda_302590546695ae0d2ca048a7b2dc98c3>@@$$V@cputask_factory@internal@symphony@@CAPAV?$cputask_arg_layer@$$A6AXXZ$$V@12@Vstate_snapshot@task_internal@12@PAVgroup@12@Vtask_attrs@legacy@12@AAV<lambda_302590546695ae0d2ca048a7b2dc98c3>@@@Z)
 
error LNK2019: unresolved external symbol "void __cdecl symphony::internal::task_allocator::deallocate(class symphony::internal::task *)" (?deallocate@task_allocator@internal@symphony@@YAXPAVtask@23@@Z) referenced in function "public: static void __cdecl symphony::internal::task_internal::release_manager::release(class symphony::internal::task *)" (?release@release_manager@task_internal@internal@symphony@@SAXPAVtask@34@@Z)
 
Please help me to solve the above errors.
Thanks a lot.
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.