开发者

Qt and Boost circular buffer

开发者 https://www.devze.com 2023-02-02 21:16 出处:网络
I\'m trying to include the boost circular buffer into my project.I installed boost onto my computer using macports.not sure what library to include for the boost libs but I have included the headers f

I'm trying to include the boost circular buffer into my project. I installed boost onto my computer using macports. not sure what library to include for the boost libs but I have included the headers files. Below is my cmake files.

QT       += core gu开发者_StackOverflowi

TARGET = DVD
TEMPLATE = app

INCLUDEPATH += /opt/local/include/boost

SOURCES += main.cpp\
        mainwindow.cpp \
    worker.cpp

HEADERS  += mainwindow.h \
    worker.h


Remove boost from INCLUDEPATH += /opt/local/include/boost because, in the source file, you will be including boost libraries like in your case "boost/circular_buffer.hpp".

I think the compiler is complaining because there is no boost folder under /opt/local/include/boost.

0

精彩评论

暂无评论...
验证码 换一张
取 消