我已经在我的*.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路径/库才能使其正常工作?
发布于 2013-05-27 02:04:10
呃,我差一点就到了。这个错误是愚蠢的。实际上,语法一:
LIBS += -L"C:\Stuff\boost_1_53_0\lib\32-bit" -lqtmaind
and so on...https://stackoverflow.com/questions/16762068
复制相似问题