How do I link against Intel TBB on Mac OS X with GCC?

Posted by SilverSun on Stack Overflow See other posts from Stack Overflow or by SilverSun
Published on 2010-04-14T18:08:23Z Indexed on 2010/04/14 18:13 UTC
Read the original article Hit count: 491

Filed under:
|
|
|
|

I can't for the life of me figure out how to compile and link against the Intel TBB library on my Mac. I've run the commercial installer and the tbbvars.sh script but I can't figure this out. I have a feeling it is something really obvious and it's just been a bit too long since I've done this kind of thing.

tbb_test.cpp

#include <tbb/concurrent_queue.h>

int main() {
    tbb::concurrent_queue<int> q;
}

g++ tbb_test.cpp -I /Library/Frameworks/TBB.framework/Headers -ltbb

...can't find the symbols.

Cheers!

© Stack Overflow or respective owner

Related posts about gcc

Related posts about c++