Question

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 gui

TARGET = DVD
TEMPLATE = app

INCLUDEPATH += /opt/local/include/boost

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

HEADERS  += mainwindow.h \
    worker.h
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top