Pergunta

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
Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top