如何在Windows上安装TBB并使其与Eclipse一起使用

时间:2017-08-01 11:53:05

标签: c++ windows eclipse intel tbb

我想在Windows上安装英特尔的线程构建模块,并使其与Eclipse IDE和C ++一起使用。我是整个C的新手,从source,make,cmake,cygwin和其他东西构建。

到目前为止我尝试过:

  • 加载TBB软件包和源代码并尝试将其包含在Eclipse中
  • 尝试从源代码“制作”TBB,但只从GNUWin32make
  • 获得错误2
  • 尝试了很多教程,技巧以及更多我不记得了的内容

我该怎么做?

Win 10 - 64bit,Eclipse Oxygen 4.7.0,cygwin 2.8.2,编译器:mingw

2 个答案:

答案 0 :(得分:1)

正如您在Release_Notes.txt中看到的,库没有Cygwin支持。但是你有几种情况:

  1. 使用Visual Studio和二进制包
  2. 使用Linux(如果你真的需要GCC)
  3. 使用没有(!)Cygwin(difference)的Mingw。在这种情况下,从源代码构建库应该是完美的。
  4. 端口库到cygwin(这是一个非常重要但真实的解决方案)

答案 1 :(得分:0)

通过复制在这里失去了空间。

  

其中g ++

     

C:\ Program Files \ mingw-w64 \ x86_64-7.1.0-posix-seh-rt_v5-rev0 \ mingw64 \ bin \ g ++。exe   C:\ MinGW的\ BIN \克++ EXE

     

g ++ -v   使用内置规格。 COLLECT_GCC =克++   COLLECT_LTO_WRAPPER = C:/程序\   文件/ MinGW的-W64 / x86_64-7.1.0-POSIX-SEH-rt_v5-REV0 / mingw64 / bin中/../的libexec / GCC / x86_64的-W64-的mingw32 / 7.1.0 / LTO-wrapper.exe   目标:x86_64-w64-mingw32配置:   ../../../src/gcc-7.1.0/configure --host = x86_64-w64-mingw32   --build = x86_64-w64-mingw32 --target = x86_64-w64-mingw32 --prefix = / mingw64 --with-sysroot = / c / mingw710 / x86_64-710-posix-seh-rt_v5-rev0 / mingw64 - enable-shared --enable-static --disable-multilib --enable-languages = c,c ++,fortran,lto --enable-libstdcxx-time = yes --enable-threads = posix --enable-libgomp --enable -libatomic --enable -lto --enable-graphite --enable-checking = release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-libstdcxx-filesystem-ts = yes --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable -rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with- gnu-as --with-gnu-ld --with-arch = nocona --with-tune = core2 --with-libiconv --with-system-zlib --with-gmp = / c / mingw710 / prerequisites / x86_64 -w64-mingw32-static --with-mpfr = / c / mingw710 / prerequisites / x86_64-w64-mingw32-static --with-mpc = / c / mingw710 / prerequisites / x86_64-w64-mingw32-static --with- isl = / c / mingw710 / prerequisites / x86_64-w64-mingw32-static --with-pkg version ='x86_64-posix-seh-rev0,由MinGW-W64项目构建'--with-bugurl = http://sourceforge.net/projects/mingw-w64 CFLAGS =' - O2 -pipe -fno-ident -I / c / mingw710 / x86_64-710 -posix-seh-rt_v5-rev0 / mingw64 / opt / include -I / c / mingw710 / prerequisites / x86_64-zlib-static / include -I / c / mingw710 / prerequisites / x86_64-w64-mingw32-static / include'CXXFLAGS =' - O2 -pipe -fno-ident   -I / c / mingw710 / x86_64-710-posix-seh-rt_v5-rev0 / mingw64 / opt / include -I / c / mingw710 / prerequisites / x86_64-zlib-static / include -I / c / mingw710 / prerequisites / x86_64 -w64-mingw32-static / include'CPPFLAGS ='   -I / c / mingw710 / x86_64-710-posix-seh-rt_v5-rev0 / mingw64 / opt / include -I / c / mingw710 / prerequisites / x86_64-zlib-static / include -I / c / mingw710 / prerequisites / x86_64 -w64-mingw32-static / include'LDFLAGS =' - pipe -fno-ident   -L / c / mingw710 / x86_64-710-posix-seh-rt_v5-rev0 / mingw64 / opt / lib -L ​​/ c / mingw710 / prerequisites / x86_64-zlib-static / lib -L ​​/ c / mingw710 / prerequisites / x86_64 -w64-mingw32-static / lib'线程模型:posix gcc版本7.1.0(x86_64-posix-seh-rev0,内置者   MinGW-W64项目)