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

Build Thread Building Blocks using VS 2010

yeliuxinfu
Beginner
253 Views

Dear Colleagues,

I am building TBB (stable release of 20120201)using microsoft vs 2010 IDEon windows 7 (x64). I got two errors:

1>c:\\inteltbb\\tbb40_20120201oss_src\\tbb40_20120201oss\\src\\tbb\\tbb_version.h(36): fatal error C1083: Cannot open include file: 'version_string.tmp': No such file or directory

I think version_string.tmp is generated by the building script to specify the platform. I added a macro USE_WINTHREAD.


#include "tbb/tbb_misc.h" // NumberOfProcessorGroups, MoveThreadIntoProcessorGroup, FindProcessorGroupIndex

For this error, Ifailed to find tbb_misc.h in the source code.

Please give me some guidance and if you can show me how to build in command line, it will also be very helpful.

Thanks,

Richard

0 Kudos
4 Replies
SergeyKostrov
Valued Contributor II
253 Views
Hi Richard, I'd like to make acomment for the1st error.

Quoting yeliuxinfu
...
1>c:\inteltbb\tbb40_20120201oss_src\tbb40_20120201oss\src\tbb\tbb_version.h(36): fatal error C1083: Cannot open include file: 'version_string.tmp': No such file or directory
...

Please take a look at:

http://software.intel.com/en-us/forums/showthread.php?t=102139&o=a&s=lr

You could easily create the filemanually and put the following content in it:

#define __TBB_VERSION_STRINGS "Empty"

That's it.

I could try to look at the 2nd error with Visual Studio 2010on Friday. I hope that TBB-guys will respond
before my attempt.

Best regards,
Sergey
0 Kudos
Vladimir_P_1234567890
253 Views
Hi Richard,
How did you get a second error? Is this build error orintellisense error?
tbb_misc.h should be located in /src/tbb folder so the right way to include might be #include "tbb_misc.h". We'll check.
thanks.
--Vladimir
0 Kudos
yeliuxinfu
Beginner
253 Views
Hi, Vlad

I added these directory in the additional include directories:

C:\intelTBB_Source\tbb40_20120201oss\include;C:\intelTBB_Source\tbb40_20120201oss\src\rml\include;C:\intelTBB_Source\tbb40_20120201oss\src

and the tbb\tbb_misc.h is in C:\intelTBB_Source\tbb40_20120201oss\src. I now get these errors:

Error 9 error LNK2019: unresolved external symbol "public: void __thiscall tbb::internal::rml::tbb_factory::close(void)" (?close@tbb_factory@rml@internal@tbb@@QAEXXZ) referenced in function "private: static void __cdecl tbb::internal::governor::release_resources(void)" (?release_resources@governor@internal@tbb@@CAXXZ) c:\intellTBB_Solution\governor.obj intellTBB_Solution

Error 10 error LNK2019: unresolved external symbol "public: enum rml::factory::status_type __thiscall tbb::internal::rml::tbb_factory::make_server(class tbb::internal::rml::tbb_server * &,class tbb::internal::rml::tbb_client &)" (?make_server@tbb_factory@rml@internal@tbb@@QAE?AW4status_type@factory@2@AAPAVtbb_server@234@AAVtbb_client@234@@Z) referenced in function "private: static class tbb::internal::rml::tbb_server * __cdecl tbb::internal::governor::create_rml_server(class tbb::internal::rml::tbb_client &)" (?create_rml_server@governor@internal@tbb@@CAPAVtbb_server@rml@23@AAVtbb_client@523@@Z) c:\intellTBB_Solution\governor.obj intellTBB_Solution

Error 11 error LNK2019: unresolved external symbol "public: void __thiscall tbb::internal::rml::tbb_factory::call_with_server_info(void (__cdecl*)(void *,char const *),void *)const " (?call_with_server_info@tbb_factory@rml@internal@tbb@@QBEXP6AXPAXPBD@Z0@Z) referenced in function "public: static void __cdecl tbb::internal::governor::print_version_info(void)" (?print_version_info@governor@internal@tbb@@SAXXZ) c:\intellTBB_Solution\governor.obj intellTBB_Solution

Error 12 error LNK2019: unresolved external symbol "public: enum rml::factory::status_type __thiscall tbb::internal::rml::tbb_factory::open(void)" (?open@tbb_factory@rml@internal@tbb@@QAE?AW4status_type@factory@2@XZ) referenced in function "public: static void __cdecl tbb::internal::governor::initialize_rml_factory(void)" (?initialize_rml_factory@governor@internal@tbb@@SAXXZ) c:\intellTBB_Solution\governor.obj intellTBB_Solution

Error 13 error LNK2019: unresolved external symbol ___TBB_machine_cmpswp8 referenced in function ___TBB_machine_store8_slow c:\intellTBB_Solution\tbb_misc.obj intellTBB_Solution

Error 14 error LNK1120: 5 unresolved externals c:\intellTBB_Solution\Debug\intellTBB_Solution.dll 1 1 intellTBB_Solution


I think there is should be some dependency libs I need build before I build tbb.dll. Could you give me some pointers?

Thanks,

YE LIU
0 Kudos
SergeyKostrov
Valued Contributor II
253 Views
Quoting yeliuxinfu
...I think there is should be some dependency libs I need build before I build tbb.dll. Could you give me some pointers?...

As far as I know there are no any additional lib-dependencies to build tbb_debug.dll or tbb.dll.
0 Kudos
Reply