Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Console Application
Qt 6.11 is out! See what's new in the release blog

Qt Console Application

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    toa12
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      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.


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toa12
        wrote on last edited by
        #3

        In the QCoreApplication header, it includes <QtCore/qglobal.h>

        in qglobal.h line 80 includes <algorithm>

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          In my case, which is located at /usr/include/c++/4.6/algorithm. And i use gcc.


          Declaration of (Platform) independence.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved