I am beginning to work with the Threading Building Blocks and I'm having an issue compiling the sample program (sub_string_finder.cpp) with g++. However, when I use intel's c++ compiler, it compiles just fine.
To compile with g++, I execute:
g++ sub_string_finder.cpp -ltbb
and I get an error:
sub_string_finder.cpp:60: error: first argument of int main(size_t, char**) should be int
However, when I execute: icpc sub_string_finder.cpp -ltbb