Reputation: 17
I use Qt 4.10.0 in 64-bit windows 7. When I tried to compile my project, error occurs: :-1: error: LNK1104: cannot open file 'libboost_date_time-vc141-mt-x64-1_71.lib'
But I do have this line in my .pro file and I have checked that the lib file (32-bit) is in this folder
LIBS += -L"D:/EPS_projects/2018to2019/29_IOT_MDI/boost_1_71_0/libs" -
llibboost_date_time-vc141-mt-x64-1_71 \
I use boost boost_1_71_0 in my project.
Upvotes: 0
Views: 68
Reputation: 3950
If you use the -l
notation, due to the way that qmake tries to be platform independent, you only need to supply the library name, without the first 'lib'.
Thus try the following:
LIBS += \
-L"D:/EPS_projects/2018to2019/29_IOT_MDI/boost_1_71_0/libs" \
-lboost_date_time-vc141-mt-x64-1_71
PS: The indenting is just for readability, you can keep it in one line
Upvotes: 1