Qt and Boost circular buffer
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
.
精彩评论