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. stdlib.h not found
Forum Update on Monday, May 27th 2025

stdlib.h not found

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 2.0k Views
  • 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.
  • taku-sT Offline
    taku-sT Offline
    taku-s
    wrote on last edited by aha_1980
    #1

    Hi all.

    I want to use an external library with Qt5 on RaspberryPi3, but it doesn't go well with an error.
    I installed the wiringPi library using apt.
    After that, Qt5 project file .pro external library was added.

    unix:! macx: LIBS + = -L $$ PWD /../../../../../ usr / lib / -lwiringPi
    INCLUDEPATH + = $$ PWD /../../../../../ usr / include
    DEPENDPATH + = $$ PWD /../../../../../ usr / include

    However, when I build, I get the following error:

    /usr/include/c++/8/bits/stl_algo.h:59:
    / usr / include / c ++ / 8 / algorithm: 62:
    /usr/include/arm-linux-gnueabihf/qt5/QtCore/qglobal.h:142:
    /usr/include/arm-linux-gnueabihf/qt5/QtGui/qtguiglobal.h:43:
    /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qtwidgetsglobal.h:43:
    /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qmainwindow.h:43:
    / usr / include / arm-linux-gnueabihf / qt5 / QtWidgets / QMainWindow: 1:
    /home/pi/Qt/illumination/mainwindow.h:4:
    /home/pi/Qt/illumination/main.cpp:1:
    / usr / include / c ++ / 8 / cstdlib: 75:
    ?Error: stdlib.h: No such file or directory
    ?#include_next <stdlib.h>

    I don't know the cause of this error.
    Thank you.

    aha_1980A Pablo J. RoginaP 2 Replies Last reply
    0
    • taku-sT taku-s

      Hi all.

      I want to use an external library with Qt5 on RaspberryPi3, but it doesn't go well with an error.
      I installed the wiringPi library using apt.
      After that, Qt5 project file .pro external library was added.

      unix:! macx: LIBS + = -L $$ PWD /../../../../../ usr / lib / -lwiringPi
      INCLUDEPATH + = $$ PWD /../../../../../ usr / include
      DEPENDPATH + = $$ PWD /../../../../../ usr / include

      However, when I build, I get the following error:

      /usr/include/c++/8/bits/stl_algo.h:59:
      / usr / include / c ++ / 8 / algorithm: 62:
      /usr/include/arm-linux-gnueabihf/qt5/QtCore/qglobal.h:142:
      /usr/include/arm-linux-gnueabihf/qt5/QtGui/qtguiglobal.h:43:
      /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qtwidgetsglobal.h:43:
      /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qmainwindow.h:43:
      / usr / include / arm-linux-gnueabihf / qt5 / QtWidgets / QMainWindow: 1:
      /home/pi/Qt/illumination/mainwindow.h:4:
      /home/pi/Qt/illumination/main.cpp:1:
      / usr / include / c ++ / 8 / cstdlib: 75:
      ?Error: stdlib.h: No such file or directory
      ?#include_next <stdlib.h>

      I don't know the cause of this error.
      Thank you.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @taku-s looks like your toolchain has a setup problem.

      Are you cross compiling or directly on the PI? Which toolchain are you using?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • taku-sT taku-s

        Hi all.

        I want to use an external library with Qt5 on RaspberryPi3, but it doesn't go well with an error.
        I installed the wiringPi library using apt.
        After that, Qt5 project file .pro external library was added.

        unix:! macx: LIBS + = -L $$ PWD /../../../../../ usr / lib / -lwiringPi
        INCLUDEPATH + = $$ PWD /../../../../../ usr / include
        DEPENDPATH + = $$ PWD /../../../../../ usr / include

        However, when I build, I get the following error:

        /usr/include/c++/8/bits/stl_algo.h:59:
        / usr / include / c ++ / 8 / algorithm: 62:
        /usr/include/arm-linux-gnueabihf/qt5/QtCore/qglobal.h:142:
        /usr/include/arm-linux-gnueabihf/qt5/QtGui/qtguiglobal.h:43:
        /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qtwidgetsglobal.h:43:
        /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qmainwindow.h:43:
        / usr / include / arm-linux-gnueabihf / qt5 / QtWidgets / QMainWindow: 1:
        /home/pi/Qt/illumination/mainwindow.h:4:
        /home/pi/Qt/illumination/main.cpp:1:
        / usr / include / c ++ / 8 / cstdlib: 75:
        ?Error: stdlib.h: No such file or directory
        ?#include_next <stdlib.h>

        I don't know the cause of this error.
        Thank you.

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @taku-s said in stdlib.h not found:

        unix:! macx: LIBS + = -L $$ PWD /../../../../../ usr / lib / -lwiringPi
        INCLUDEPATH + = $$ PWD /../../../../../ usr / include
        DEPENDPATH + = $$ PWD /../../../../../ usr / include

        in addition to answer @aha_1980 questions, are those paths Ok? I can see lots of spaces

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        3
        • taku-sT Offline
          taku-sT Offline
          taku-s
          wrote on last edited by
          #4

          Thank you very much.
          After all, it seems that it was a problem of g ++
          It was solved by apt-get update.

          aha_1980A 1 Reply Last reply
          1
          • taku-sT taku-s

            Thank you very much.
            After all, it seems that it was a problem of g ++
            It was solved by apt-get update.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi @taku-s,

            glad you figured it out. So please mark this topic as SOLVED. Thanks!

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • taku-sT Offline
              taku-sT Offline
              taku-s
              wrote on last edited by
              #6

              It was a mistake to say that updating solved the problem.
              Definitely, once I was able to build and run, the next error was the same.
              I tried out Pablo J. Rogina's “number of passes problem” and now I can build it.
              Thank you very mutch.

              But I can't rest assured.
              This time, it is a path automatically created by QtCreator, but when I added an absolute path manually, I saw the same error.

              For the time being, let's see the situation

              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