Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
13 Views

Release linker error LNK2001

hi folks,

I am getting the following error only when building as release, when building for debug the program runs fine:

error LNK2001: unresolved external symbol @__TBB_machine_trylockbyte@4


Any help or ideas how i can solve this would be appreciated,

Cheers,

Mark.
0 Kudos
2 Replies
Highlighted
Beginner
13 Views


Fixed!

The problem for anyone with a similar issue in the future was that I had set the calling convention to __fastcall rather than __ccall. Seems a bit awkward if one function forces you to the __ccall convention. Any way around it or a reason for it anyone know?

0 Kudos
Highlighted
New Contributor II
13 Views

Quoting - fanaticlatic

Fixed!

The problem for anyone with a similar issue in the future was that I had set the calling convention to __fastcall rather than __ccall. Seems a bit awkward if one function forces you to the __ccall convention. Any way around it or a reason for it anyone know?

Hello, this problem has been fixed in the library starting with "20080825" open-source developers' build and TBB 2.1 Update 1 commercial-aligned build. If you update your version of TBB, you'll be able to compile your product with __fastcall as a default calling convention.
0 Kudos