我在* .pro文件中尝试过类似的内容:
INCLUDEPATH += "C:\Stuff\boost_1_53_0"
LIBS += -L/C:\Stuff\boost_1_53_0\lib\32-bit -lqtmaind
LIBS += -L/C:\Stuff\boost_1_53_0\lib\32-bit -lQt5PrintSupportd
LIBS += -L/C:\Stuff\boost_1_53_0\lib\32-bit -lQt5Widgetsd
LIBS += -L/C:\Stuff\boost_1_53_0\lib\32-bit -lQt5Guid
LIBS += -L/C:\Stuff\boost_1_53_0\lib\32-bit -lQt5Cored
但是我仍然会遇到一些链接器错误(比如这个):
LNK1104: cannot open file 'libboost_program_options-vc100-mt-gd-1_53.lib'
如何配置boost path / libs以使其正常工作?
答案 0 :(得分:3)
LIBS += -L"C:\Stuff\boost_1_53_0\lib\32-bit" -lqtmaind
and so on...