Good night, dear colleagues!

I have the following problem. I need to install the boost library in Qt creatore. I downloaded the library, installed it in the folder D:\boost_1_54_0 . (I'm trying to do as said here ) Next, in the body of the program in the .pro project, I write the following things.

 TEMPLATE = app CONFIG += console CONFIG -= app_bundle CONFIG -= qt SOURCES += main.cpp win32 { INCLUDEPATH += D:/boost_1_54_0 LIBS += -LC:/boost/lib \ -lboost_serialization-mgw46-mt-d-1_54 \ -lboost_filesystem-mgw46-mt-d-1_54 \ -lboost_system-mgw46-mt-d-1_54 } 

When I try to compile the program code, I get an error

 cannot find -lboost_filesystem-mgw46-mt-d-1_54 collect2: ld returned 1 exit status 

Tell me, please, what am I doing wrong? Or, if possible, skip, please, instructions on how to set a boost on Qt.

Update

Look, I correctly understood that it was necessary in the line

 INCLUDEPATH += 

write where is the folder boost_1_54_0 ? I copied it to D At the same time, QtSDK itself is located in QtSDK Do I need to boost_1_54_0 entire folder boost_1_54_0 to a certain place? I simply, frankly, do not quite understand what needs to be written in the libs. I'm trying to register LD:/boost_1_54_0\lib , but the problem is not solved. Do I need to put any additional distribution?

  • Do you happen to have no spaces after the characters ``? There should not be them. - KoVadim
  • Vadim, I checked, there were no gaps. - kuziashag85 8:38 pm
  • Are the paths exactly the right ones? but it confuses me a little that include is on D, and if it is on C. - KoVadim
  • Boost is an interesting library and needs to be compiled separately. and some people believe that it should only be compiled on their own. But this is for connoisseurs. For training, you can simply look for the compiled boost. It will just be the lib and dll files that you lack. In the directory D:/boost_1_54_0\lib or whatever you prescribe there, there must be files with the extension lib or a. - KoVadim

1 answer 1

-L"PATH" says that the folder is specified where the linker will look for lib files. Check that in the folder C:/boost/lib that you specified is compiled boost_filesystem-mgw46-mt-d-1_54.lib

Here is an example of indicating where I lie. Laziness to shift was indicated as it is.

 -L"C:\usr\lib\boost_1_57_0\bin.v2\libs\system\build\msvc-12.0\debug\architecture-ia64\link-static\threading-multi" -llibboost_system-vc120-mt-gd-1_57 

PS If you just unpacked, then there will not be. It is necessary to collect this whole thing. Read docks how to collect in a folder of a boost.