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

"note_affinity" link error, please help?

OpenHero
Beginner
252 Views

I download the TBB each version, and add them to VS2005.

Using concurrent_queue concurrent_hash_map is ok.

But when I use parallel_for, then get a link error!

error LNK2001: unresolved external symbol "public: virtual void __thiscall tbb::task::note_affinity(unsigned short)" (?note_affinity@task@tbb@@UAEXG@Z)

Could some one to tell me how to resolve it.

Thanks very much!

0 Kudos
2 Replies
OpenHero
Beginner
252 Views

I solved the error!

Use different version of"include" work with another one,will get this error!:)

Alexey_K_Intel3
Employee
252 Views

Yes, please be sure you do not mix headers and binaries from different packages.

The developer updates are not guaranteed to provide any binary compatibility. Stable releases usually should provide backward binary compatibility, which means you can replace old binaries with newer ones, but not the otehr way. Likely, commercial-aligned releases should be backward-compatible; but stable is not necessarily compatible to com-aligned, and vice versa.

Reply