Windows 7 Windows下的QtCreator和TBB
我已经使用Mingw从源代码处编译了TBB,并在本文中发表了评论5:。一切顺利 当我尝试在QtCreator项目中使用新的TBB库时,我以以下错误结束忽略警告消息: 以下是我尝试的示例代码,我省略了非tbb代码:Windows 7 Windows下的QtCreator和TBB,windows-7,qt-creator,tbb,Windows 7,Qt Creator,Tbb,我已经使用Mingw从源代码处编译了TBB,并在本文中发表了评论5:。一切顺利 当我尝试在QtCreator项目中使用新的TBB库时,我以以下错误结束忽略警告消息: 以下是我尝试的示例代码,我省略了非tbb代码: #include "tbb/task_scheduler_init.h" int main() { tbb::task_scheduler_init init; /// more things. } 下面是.pro文件: 有什么想法吗 谢谢 在Windows上使用MinGW
#include "tbb/task_scheduler_init.h"
int main()
{
tbb::task_scheduler_init init;
/// more things.
}
下面是.pro文件:
有什么想法吗
谢谢 在Windows上使用MinGW构建时,TBB二进制文件是TBB.dll和TBB_debug.dll。配置文件中的选项-ltbb_debug可能会导致链接器查找libtbb_debug。。它找不到这样的二进制文件,并报告未解析的符号
TEMPLATE = app
CONFIG += console
CONFIG -= qt
SOURCES += main.cpp
#QMAKE_CXXFLAGS += -fopenmp
#QMAKE_LFLAGS += -fopenmp
INCLUDEPATH += "E:\TRABAJO\LIBRERIAS\tbb-4.1_src\include"
LIBS += -L"E:\TRABAJO\LIBRERIAS\tbb-4.1_src\build\windows_intel64_gcc_mingw4.5.4_debug\" \
-ltbb_debug