Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2479 Discussions

Unresolved externals when building TBB v4.1 Update 1 with VS 2008 Express Edition

SergeyKostrov
Valued Contributor II
895 Views

Please see my 2nd post with the description of the linker problems.

0 Kudos
6 Replies
SergeyKostrov
Valued Contributor II
895 Views
NOTE: It is very strange my original post is NOT displayed... I never had any compilation or linker issues / problems with TBB versions before 4.1. So, here are two problems: [ Linker Problem 1 ] ------ Build started: Project: tbbmalloc, Configuration: Debug Win32 ------ Linking... Creating library C:\WorkLib\TBB\Build\VsProject\ia32\Debug\tbbmalloc_debug.lib and object C:\WorkLib\TBB\Build\VsProject\ia32\Debug\tbbmalloc_debug.exp itt_notify.obj : error LNK2019: unresolved external symbol _ITT_DoOneTimeInitialization referenced in function "void __cdecl __itt_sync_createA_init_3_0(void *,char const *,char const *,int)" (?__itt_sync_createA_init_3_0@@YAXPAXPBD1H@Z) C:\WorkLib\TBB\Build\VsProject\ia32\Debug\tbbmalloc_debug.dll : fatal error LNK1120: 1 unresolved externals tbbmalloc - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========== and [ Linker Problem 2 ] ------ Build started: Project: tbbmalloc_proxy, Configuration: Debug Win32 ------ Compiling... proxy.cpp tbb_function_replacement.cpp Generating Code... Linking... Creating library C:\WorkLib\TBB\Build\VsProject\ia32\Debug\tbbmalloc_proxy_debug.lib and object C:\WorkLib\TBB\Build\VsProject\ia32\Debug\tbbmalloc_proxy_debug.exp proxy.obj : error LNK2001: unresolved external symbol _scalable_aligned_malloc proxy.obj : error LNK2001: unresolved external symbol _scalable_calloc proxy.obj : error LNK2001: unresolved external symbol _scalable_malloc proxy.obj : error LNK2019: unresolved external symbol _safer_scalable_free referenced in function "void __cdecl safer_scalable_free2(void *)" (?safer_scalable_free2@@YAXPAX@Z) proxy.obj : error LNK2019: unresolved external symbol _safer_scalable_msize referenced in function "unsigned int __cdecl safer_scalable_msize_msvcr70d(void *)" (?safer_scalable_msize_msvcr70d@@YAIPAX@Z) proxy.obj : error LNK2019: unresolved external symbol _safer_scalable_realloc referenced in function "void * __cdecl safer_scalable_realloc_msvcr70d(void *,unsigned int)" (?safer_scalable_realloc_msvcr70d@@YAPAXPAXI@Z) proxy.obj : error LNK2019: unresolved external symbol _safer_scalable_aligned_realloc referenced in function "void * __cdecl safer_scalable_aligned_realloc_msvcr70d(void *,unsigned int,unsigned int)" (?safer_scalable_aligned_realloc_msvcr70d@@YAPAXPAXII@Z) C:\WorkLib\TBB\Build\VsProject\ia32\Debug\tbbmalloc_proxy_debug.dll : fatal error LNK1120: 7 unresolved externals tbbmalloc_proxy - 8 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== TBB v4.1 Update 1 downloaded from: Archive: tbb41_20121112oss_src.tgz Web-link: http://threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20121112oss_src.tgz
0 Kudos
Vladimir_P_1234567890
895 Views
Indeed! We'll fix it. Meanwhile tbbmalloc.vcproj from 4.1 can be used. --Vladimir
0 Kudos
SergeyKostrov
Valued Contributor II
895 Views
>>...We'll fix it. Meanwhile tbbmalloc.vcproj from 4.1 can be used... Thanks for the update and I'll take a look.
0 Kudos
SergeyKostrov
Valued Contributor II
895 Views
>>...We'll fix it. Meanwhile tbbmalloc.vcproj from 4.1 can be used. Vladimir, could let us know as soon as the build problem is fixed? I simply don't want to mix files from different versions of TBB ( there are three already... ) on my development computer.
0 Kudos
Vladimir_P_1234567890
895 Views
Sergey Kostrov wrote:

Vladimir, could let us know as soon as the build problem is fixed?

I simply don't want to mix files from different versions of TBB ( there are three already... ) on my development computer.

OK as another workaround you can use rebuild option in batch build. It will build right object files for every configuration. --Vladimir
0 Kudos
SergeyKostrov
Valued Contributor II
895 Views
>>...OK as another workaround you can use rebuild option in batch build... Actually, this is what I always do, that is building all dependent modules at the same time and in case of TBB these are all ***_debug DLLs.
0 Kudos
Reply