Qt Console Application
-
When I try and build...
/home/toa/Qt5.1.1/5.1.1/gcc_64/include/QtCore/QCoreApplication:1: In file included from ../../../../Qt5.1.1/5.1.1/gcc_64/include/QtCore/QCoreApplication:1:
/home/toa/Qt5.1.1/5.1.1/gcc_64/include/QtCore/qcoreapplication.h:45: In file included from ../../../../Qt5.1.1/5.1.1/gcc_64/include/QtCore/qcoreapplication.h:45:
/home/toa/Qt5.1.1/5.1.1/gcc_64/include/QtCore/qglobal.h:80: error: 'algorithm' file not found
#include <algorithm>
^In the global.h line 80 the #include <algorithm> is not found. I have tried reinstalling Qt 5.1 and it did not seem to help. I'm not real experienced with c++ or Qt, but I can generally figure out errors by searching, but I have not found any topics on this particular problem. I am using Ubuntu 13.10. In fact I recently updated from 13.04 and this is when the problem started. Also I have Clang 3.4 as the compiler if that is relevant. Any help would be appreciated.
-
What is @ #include <algorithm>@ ??
It is a Standard C++ Library header.
EDIT : So, just make sure that you have all the necessary c++ headers and libs in your PATH. -
In the QCoreApplication header, it includes <QtCore/qglobal.h>
in qglobal.h line 80 includes <algorithm>
-
In my case, which is located at /usr/include/c++/4.6/algorithm. And i use gcc.