- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have just downloaded the src package and foolowed the getting strted tutorial but have the following error
g++ -O2 -DNDEBUG -o sub_string_finder sub_string_finder.cpp -ltbb
/usr/bin/ld: cannot find -ltbb
collect2: ld returned 1 exit status
make: *** [release] Error 1
I sourced the .sh file it created and am not sure what i am missing.
-Mitchelle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have just downloaded the src package and foolowed the getting strted tutorial but have the following error
g++ -O2 -DNDEBUG -o sub_string_finder sub_string_finder.cpp -ltbb
/usr/bin/ld: cannot find -ltbb
collect2: ld returned 1 exit status
make: *** [release] Error 1
I sourced the .sh file it created and am not sure what i am missing.
-Mitchelle.
The question might be dealt with more rapidly on the TBB forum. If you have downloaded source only, you would need to build that library before you could link against it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I downloaded the source package "tbb21_20080605oss_src.tgz"
Extracted it set tbb_root and ran a "make all" on the top level directory. I then sourced the "tbbvars.sh" shell script within linux_ia32_gcc_cc4.2.3_libc2.7_kernel2.6.24_debug
I have also tried make a link to libtbb_debug.so.2.
The following is the error in trying to compile the example
/examples/GettingStarted/sub_string_finder> make all
g++ -O2 -DNDEBUG -o sub_string_finder sub_string_finder.cpp -ltbb
/usr/bin/ld: cannot find -ltbb
collect2: ld returned 1 exit status
make: *** [release] Error 1
My gcc version is gcc version 4.2.3 with ubuntu 8.04
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The tbbvars.sh from the release folder worked. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The tbbvars.sh from the release folder worked. Thanks!
To link with the debug version you would need to specify -ltbb_debug instead of -ltbb.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page