如何在QtCreator项目中配置Boost?

时间:2013-05-26 17:54:45

标签: c++ qt linker libs

我在* .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以使其正常工作?

1 个答案:

答案 0 :(得分:3)

呃,我太近了。而这个错误是愚蠢的。语法一,实际上:

LIBS += -L"C:\Stuff\boost_1_53_0\lib\32-bit" -lqtmaind
and so on...