سؤال

I want to include boost in my qt application in windows, So:

In my .pro file, I add:

INCLUDEPATH += D:/library/boost_1_55_0

In main.cpp

#include <boost/thread/mutex.hpp>

When build, cause this error:

Cannot open include file: 'boost/thread/mutex.hpp'

I am sure the path is correct. And it is very strange.

هل كانت مفيدة؟

المحلول

The issue is that you have to re-run qmake explicitly. Here you can find the corresponding long-standing issue:

Creator should know when to rerun qmake

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top