0

I compiled TBB library as shown QtCreator and TBB under Windows set the necessary paths to the library (. Dll)

INCLUDEPATH += "C:\Tbb\include"
LIBS += -L"C:\Tbb\build\windows_ia32_gcc_mingw_debug\" \
    -tbb_debug.dll"

as shown, but build the project I have the following error image, any ideas?

Community
  • 1
  • 1
softbrewery
  • 501
  • 6
  • 18
  • 1
    The error indicates, that you did not properly link against tbb library. I think, you need to use rather `tbb_debug.lib` than `tbb_debug.dll`. – vahancho Jan 16 '14 at 09:40
  • In the folder that I build the library files with no extension .lib I downloaded sours codes website TBB and build them as shown above in [link](http://stackoverflow.com/questions/13606029/qtcreator-and-tbb-under-windows) – softbrewery Jan 16 '14 at 09:50
  • 1
    You're not building in Release mode, right? – Adri C.S. Jan 16 '14 at 11:03
  • Yes,I build as show [QtCreator and TBB under Windows](http://stackoverflow.com/questions/13606029/qtcreator-and-tbb-under-windows) – softbrewery Jan 16 '14 at 14:40
  • possible duplicate of [What is an undefined reference/unresolved external symbol error and how do I fix it?](http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) – Anton Apr 29 '14 at 14:04

1 Answers1

1
  1. Do not use extensions for libraries to link (they are added automagically)
  2. Understand command line switches :) --library=namespec has a shorthand version -lnamespec. Following that you defined command line switch -t with an argument bb_debug.dll, which is nonsense :)

You should use -ltbb_debug

friendzis
  • 799
  • 6
  • 17
  • I used `-ltbb_debug` But I have the Open unit performs the same mistakes, lest I wrong in Build – softbrewery Jan 16 '14 at 10:06
  • how I can solve the problem, please help me @friendzis – softbrewery Jan 16 '14 at 16:27
  • @m7boy sorry, could not understand your previous comment. You still get same errors? Make sure the directory you are providing to -L (`"C:\Tbb\build\windows_ia32_gcc_mingw_debug\"` in your example) contains `tbb_debug.lib`. If it is named `libtbb_debug.lib` then use `-llibtbb_debug` (as per your link). – friendzis Jan 16 '14 at 17:41