0

I would like to know what are the C++ Compile and Build Commands for Geany with TBB using g++ compiler. I've been struggling with Geany for days and I couldn't make it work.

Note: Within my C++ code I have included the necessary headers and verified the syntax is correct.

For now the console is throwing me this:

E:\Applications\MinGW\bin\g++ "test.cpp" -Wall -o "test" -ltbb -lrt -std=c++0x (in directory: \fs.ece.uprm.edu\students\s802068090\Desktop) In file included from E:/Applications/tbb/parallel_for.h:36:0, from test.cpp:2: E:/Applications/tbb/tbb_exception.h:340:5: error: 'exception_ptr' in namespace 'std' does not name a type E:/Applications/tbb/tbb_exception.h:356:31: error: 'exception_ptr' in namespace 'std' does not name a type E:/Applications/tbb/tbb_exception.h:356:51: error: ISO C++ forbids declaration of 'src' with no type [-fpermissive] E:/Applications/tbb/tbb_exception.h: In member function 'void tbb::internal::tbb_exception_ptr::throw_self()': E:/Applications/tbb/tbb_exception.h:353:26: error: 'rethrow_exception' is not a member of 'std' E:/Applications/tbb/tbb_exception.h:353:49: error: 'my_ptr' was not declared in this scope E:/Applications/tbb/tbb_exception.h: In constructor 'tbb::internal::tbb_exception_ptr::tbb_exception_ptr(const int&)': E:/Applications/tbb/tbb_exception.h:356:59: error: class 'tbb::internal::tbb_exception_ptr' does not have any field named 'my_ptr' E:/Applications/tbb/tbb_exception.h: In constructor 'tbb::internal::tbb_exception_ptr::tbb_exception_ptr(const tbb::captured_exception&)': E:/Applications/tbb/tbb_exception.h:357:59: error: class 'tbb::internal::tbb_exception_ptr' does not have any field named 'my_ptr' E:/Applications/tbb/tbb_exception.h:357:66: error: 'copy_exception' is not a member of 'std' Compilation failed.

Chicodelarose
  • 827
  • 7
  • 22
  • Your first error ("'exception_ptr' in namespace 'std' does not name a type") sounds like the one here: http://stackoverflow.com/questions/9537219/strange-errors-in-intels-tbb , maybe it's a duplicate? – gfour Apr 25 '12 at 12:59
  • Please close the question ... – frlan Apr 25 '14 at 20:01
  • Regarding `std::copy_exception`, it was [renamed to `std::make_exception_ptr` in the final C++11 standard](https://stackoverflow.com/q/37831458/3919155). – jotik Jan 31 '18 at 10:09

0 Answers0