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. Problem with including cstdlib library (No such file or directory)
Forum Updated to NodeBB v4.3 + New Features

Problem with including cstdlib library (No such file or directory)

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 4 Posters 6.0k Views 2 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.
  • jsulmJ jsulm

    @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

    what do You mean by installing packages from my distribution?

    apt install libboost-all-dev
    
    L Offline
    L Offline
    Lyokoheros
    wrote on last edited by
    #5

    @jsulm that didn't change anything. I still get the same error. Which was about stdlib.h, not boost libraries, as I already mentioned.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

      stdlib.h

      Where do you have that file exactly on your system ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • SGaistS SGaist

        @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

        stdlib.h

        Where do you have that file exactly on your system ?

        L Offline
        L Offline
        Lyokoheros
        wrote on last edited by
        #7

        @SGaist i find it in a few differen locations:
        usr/include
        usr/include/c++/8
        usr/include/c++/9
        usr/include/x86_64-linux-gnu/bits
        snap/gnome-3-34-1804/36/usr/include
        usr/include/c++/8/tr1
        usr/include/c++/9/tr1

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #8

          Can you share your .pro file ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply
          0
          • SGaistS SGaist

            Can you share your .pro file ?

            L Offline
            L Offline
            Lyokoheros
            wrote on last edited by
            #9

            @SGaist I already do it. .pro file is inside the repository i linked at the very beginning.

            QT += core gui widgets
            
            TARGET = BairstowSolver
            TEMPLATE = app
            CONFIG += \
            no_keywords
            
            SOURCES += \
                main.cpp \
                mywidget.cpp \
                solver.cpp \
                solverinterval.cpp
            
            HEADERS += \
                interval.h \
                mywidget.h \
                solver.h \
                solverinterval.h
            
            LIBS +=\
                -L"/usr/local/boost/boost_1_55_0" \
                -L"/usr/include"
            
            
            INCLUDEPATH +=\
                /usr/local/boost/boost_1_55_0 \
                /usr/include
            

            And here's direct link to it.

            jsulmJ 1 Reply Last reply
            0
            • L Lyokoheros

              @SGaist I already do it. .pro file is inside the repository i linked at the very beginning.

              QT += core gui widgets
              
              TARGET = BairstowSolver
              TEMPLATE = app
              CONFIG += \
              no_keywords
              
              SOURCES += \
                  main.cpp \
                  mywidget.cpp \
                  solver.cpp \
                  solverinterval.cpp
              
              HEADERS += \
                  interval.h \
                  mywidget.h \
                  solver.h \
                  solverinterval.h
              
              LIBS +=\
                  -L"/usr/local/boost/boost_1_55_0" \
                  -L"/usr/include"
              
              
              INCLUDEPATH +=\
                  /usr/local/boost/boost_1_55_0 \
                  /usr/include
              

              And here's direct link to it.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #10

              @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

              LIBS +=
              -L"/usr/local/boost/boost_1_55_0"
              -L"/usr/include"

              Why did you add /usr/include to search path for libraries?! Also, it is not needed to add it to include paths (INCLUDEPATH) as it is searched by default.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              L 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

                LIBS +=
                -L"/usr/local/boost/boost_1_55_0"
                -L"/usr/include"

                Why did you add /usr/include to search path for libraries?! Also, it is not needed to add it to include paths (INCLUDEPATH) as it is searched by default.

                L Offline
                L Offline
                Lyokoheros
                wrote on last edited by
                #11

                @jsulm I hade to add it to solve problem with Qt Creator not finding the mpfr.h library (I getttti error "undefined refference to 'mpfr_init2'")

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  mpfr.h is a header which are usually found in an include subdir.

                  "-L" is used to add paths to search for the linker to find additional libraries. Adding include path to it is usually wrong because if there are library files in there, then your system has an installation issue.

                  Can you build a default project using that header ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  L 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    mpfr.h is a header which are usually found in an include subdir.

                    "-L" is used to add paths to search for the linker to find additional libraries. Adding include path to it is usually wrong because if there are library files in there, then your system has an installation issue.

                    Can you build a default project using that header ?

                    L Offline
                    L Offline
                    Lyokoheros
                    wrote on last edited by
                    #13

                    @SGaist well it was exaclty in that folder, not in any of subfolders.
                    But well actually when I create new qt widget application it could be easily build with just -L"/usr/include" or just reffering to mpfr.h (simply by including it in class header) all was fine but when I tried to build it with both (-L"/usr/include" in LIBS and including mpfr.h) i got the same error: stdlib.h no such file or directory.
                    Well at least that's what I saw at the beginning now when I tried to repeat this tests it seems random... sometimes with both it work well, sometimes without this addition to LIBS, sometimes only with it (and not including mpfr.h), other time it's not working just with addition to LIBS(without including mpfr.h)... i don't get it...

                    But maybe the correct aproach to it would be solving the error, which appear when I don't add "-L"/usr/include"" to LIBS. And this is the said error:

                    error: main.o: in function `interval_arithmetic::Interval<long double>::IntRead(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
                    /home/ubuntu/Desktop/MetodaBairstowa/interval.h:264: error: undefined reference to `mpfr_init2'
                    error: /home/ubuntu/Desktop/build-Bairstow-Desktop-Debug/../MetodaBairstowa/interval.h:265: undefined reference to `mpfr_set_str'
                    error: /home/ubuntu/Desktop/build-Bairstow-Desktop-Debug/../MetodaBairstowa/interval.h:268: undefined reference to `mpfr_get_ld'
                    error: /home/ubuntu/Desktop/build-Bairstow-Desktop-Debug/../MetodaBairstowa/interval.h:271: undefined reference to `mpfr_get_d'
                    [and a little bit of similar lines]
                    
                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #14

                      Where is the .so file of that library located ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      L 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Where is the .so file of that library located ?

                        L Offline
                        L Offline
                        Lyokoheros
                        wrote on last edited by
                        #15

                        @SGaist .so file of what library? (I know this may seem a stupid question, but before I didn't work much with additional external libraries in c++)

                        jsulmJ 1 Reply Last reply
                        0
                        • L Lyokoheros

                          @SGaist .so file of what library? (I know this may seem a stupid question, but before I didn't work much with additional external libraries in c++)

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #16

                          @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

                          so file of what library?

                          The library which defines the undefined references. I guess libmpfr.so or something like that...

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          L 1 Reply Last reply
                          1
                          • jsulmJ jsulm

                            @Lyokoheros said in Problem with including cstdlib library (No such file or directory):

                            so file of what library?

                            The library which defines the undefined references. I guess libmpfr.so or something like that...

                            L Offline
                            L Offline
                            Lyokoheros
                            wrote on last edited by
                            #17

                            @jsulm I find it in usr/lib/x86_64-linux-gnu, but there is also one in home/ubunutu/anaconda3/lib and a few instances with something like ".6" or ".6.0.2" after the ".so" extension (I know linux technically doesn't have extensions, but I don't know how to call it other way)

                            jsulmJ 1 Reply Last reply
                            0
                            • L Lyokoheros

                              @jsulm I find it in usr/lib/x86_64-linux-gnu, but there is also one in home/ubunutu/anaconda3/lib and a few instances with something like ".6" or ".6.0.2" after the ".so" extension (I know linux technically doesn't have extensions, but I don't know how to call it other way)

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on last edited by
                              #18

                              @Lyokoheros

                              LIBS += -lmpfr
                              

                              in PRO file should be enough

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              L 1 Reply Last reply
                              1
                              • jsulmJ jsulm

                                @Lyokoheros

                                LIBS += -lmpfr
                                

                                in PRO file should be enough

                                L Offline
                                L Offline
                                Lyokoheros
                                wrote on last edited by
                                #19

                                @jsulm apparently it wasn't enough.
                                And actually it turned out I forget implement the interval version of one function, which of course give me some errors after adding -lmpfr to LIBS, but after adding the mentioned implementation I again get just "stdlib.h: No such file or directory" - which point to cstdlib in /usr/include/c++/9/

                                The .pro file is now like this:

                                QT += core gui widgets
                                
                                TARGET = BairstowSolver
                                TEMPLATE = app
                                CONFIG += \
                                no_keywords
                                
                                SOURCES += \
                                    main.cpp \
                                    mywidget.cpp \
                                    solver.cpp \
                                    solverinterval.cpp
                                
                                HEADERS += \
                                    interval.h \
                                    mywidget.h \
                                    solver.h \
                                    solverinterval.h
                                
                                LIBS +=\
                                    -L"/usr/local/boost/boost_1_55_0" \
                                    -lmpfr
                                
                                
                                INCLUDEPATH +=\
                                    /usr/local/boost/boost_1_55_0 \
                                    /usr/include
                                

                                For changes in intervalsolver.cpp you can look here

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #20

                                  Nothing stands out...

                                  Do you have the same issue if you use a default project ?

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    stryga42
                                    wrote on last edited by
                                    #21

                                    Could you please provide the compiler output before and after the "stdlib.h: No such file or directory"? Usually there is more information like "included from..." so that you can figure out the whole chain of includes.
                                    As a "shot in the dark" , issues which may create problems like yours could be:

                                    • case sensitive include paths somewhere in your include tree (especially dangerous if you use libs which where developed on Windows)

                                    • something you you include uses absolute include paths (bad practice, should not happen in the libs you mentioned)

                                    • something you you include uses relative include paths for standard headers (also bad practice but ...)

                                    btw, if you need something like -L"/usr/include" to make it work, I would be very wary. Adding an include dir for the linker makes no sense at all, as SGaist and jsulm explained above.

                                    1 Reply Last reply
                                    1
                                    • L Offline
                                      L Offline
                                      Lyokoheros
                                      wrote on last edited by
                                      #22

                                      It was a long time but... well many things happen and I had to abandon this project for some time but now I have to finish it.
                                      Unfortunately I have also to set up my Linux (Ubuntu 20.0.4) anew, and installing all with terminal - I mean QT, QT creator, dev-essentials, etc. and the libraries for Interval.h to work (those according to this instruction: http://www.cs.put.poznan.pl/amarciniak/Interval_Arithmetic_CPP_instrukcja.pdf (I know it's in Polish but only the commends actually matter there)) - so this is clear installation and pretty much no other things were installed.
                                      Firstly I got some problem with QTCreator which didn't detect QT automatically, but I manage to add it manually (it's QT 5.12.8), but now I find much more issues and communicates from QT creator, most of them... isn't exactly clear.
                                      Just for reminder here is repository with my entire code - so far as I can see there's no case sensitive path there also it doesn't seem as any of my includes uses absolut paths or relative include path for standard headers (I don't find any of that in Interval.h and I think I can assume the other libraries I download don't have such issues) - but maybe I'm just missing something...

                                      Also the messages I mention are the following(it is quite long I had to copy it one by one from the IDE, as it hadn't let me to just mark it all...)

                                      /home/ubuntu/Projekty/MetodaBairstowa/mywidget.cpp:1: In file included from ../MetodaBairstowa/mywidget.cpp:1:
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/mywidget.h:4: In file included from ../MetodaBairstowa/mywidget.h:4:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QWidget:1: In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QWidget:1:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:43: In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:43:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43: In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142: In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142:
                                      
                                      /include/c++/9/algorithm:62: In file included from /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/algorithm:62:
                                      
                                      /include/c++/9/bits/stl_algo.h:59: In file included from /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_algo.h:59:
                                      
                                      /include/c++/9/cstdlib:75: error: 'stdlib.h' file not found
                                      #include_next <stdlib.h>
                                                    ^~~~~~
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/main.cpp:1: In file included from ../MetodaBairstowa/main.cpp:1:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1: In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:43: In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:43:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43:
                                      
                                      /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142: In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142:
                                      /include/c++/9/algorithm:62: In file included from /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/algorithm:62:
                                      
                                      /include/c++/9/bits/stl_algo.h:59: In file included from /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_algo.h:59:
                                      
                                      /include/c++/9/cstdlib:75: error: 'stdlib.h' file not found
                                      #include_next <stdlib.h>
                                                    ^~~~~~
                                      
                                      In file included from ../MetodaBairstowa/solver.cpp../MetodaBairstowa/solverinterval.cpp::1: In file included from In file included from ../MetodaBairstowa/solver.cpp../MetodaBairstowa/solverinterval.cpp::1:
                                      1In file included from :
                                      ../MetodaBairstowa/solverinterval.hIn file included from :../MetodaBairstowa/solver.h4:4:
                                      :
                                      In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QString/usr/include/x86_64-linux-gnu/qt5/QtCore/QString::11: In file included from In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QString/usr/include/x86_64-linux-gnu/qt5/QtCore/QString::11:
                                      :
                                      
                                      In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h::4848: In file included from In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h/usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h::4848:
                                      :
                                      
                                      In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h/usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h::4343: In file included from In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h/usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h::4343:
                                      :
                                      
                                      In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h::142142: In file included from In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h::142142:
                                      :
                                      
                                      In file included from /include/c++/9/algorithm/include/c++/9/algorithm::6262: In file included from In file included from /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/algorithm/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/algorithm::6262:
                                      :
                                      
                                      In file included from /include/c++/9/bits/stl_algo.h/include/c++/9/bits/stl_algo.h::5959: In file included from In file included from /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_algo.h/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_algo.h::5959:
                                      :
                                      /bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/cstdlib:/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/cstdlib75::7515::15:  fatal errorfatal error: : 'stdlib.h' file not found'stdlib.h' file not found
                                      
                                      #include_next <stdlib.h>
                                      #include_next <stdlib.h>              ^~~~
                                      
                                                    ^~~~
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:265: error: member reference base type 'const std::string' (aka 'const int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:267: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:270: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:273: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:277: error: member reference base type 'const std::string' (aka 'const int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:279: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:282: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:285: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:288: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:308: error: reference to 'std' is ambiguous
                                      
                                      /usr/include/c++/9/ostream:41: candidate found by name lookup is 'std'
                                      
                                      /usr/include/c++/9/bits/fstream.tcc:43: candidate found by name lookup is 'std::std'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:308: error: 'T' does not refer to a value
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:295: declared here
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:308: error: no member named 'digits10' in the global namespace
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:309: error: member reference base type 'std::stringstream' (aka 'int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:309: error: reference to 'std' is ambiguous
                                      
                                      /usr/include/c++/9/ostream:41: candidate found by name lookup is 'std'
                                      /usr/include/c++/9/bits/fstream.tcc:43: candidate found by name lookup is 'std::std'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:312: error: cannot initialize a variable of type 'std::string' (aka 'int') with an rvalue of type 'const char *'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:314: error: reference to 'std' is ambiguous
                                      
                                      /usr/include/c++/9/ostream:41: candidate found by name lookup is 'std'
                                      
                                      /usr/include/c++/9/bits/fstream.tcc:43: candidate found by name lookup is 'std::std'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:316: error: member reference base type 'std::stringstream' (aka 'int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:317: error: member reference base type 'std::stringstream' (aka 'int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:317: error: reference to 'std' is ambiguous
                                      
                                      /usr/include/c++/9/ostream:41: candidate found by name lookup is 'std'
                                      
                                      /usr/include/c++/9/bits/fstream.tcc:43: candidate found by name lookup is 'std::std'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:325: error: reference to 'std' is ambiguous
                                      
                                      /usr/include/c++/9/ostream:41: candidate found by name lookup is 'std'
                                      
                                      /usr/include/c++/9/bits/fstream.tcc:43: candidate found by name lookup is 'std::std'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:327: error: member reference base type 'std::stringstream' (aka 'int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:328: error: member reference base type 'std::stringstream' (aka 'int') is not a structure or union
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:403: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:406: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:409: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:440: error: assigning to 'std::string' (aka 'int') from incompatible type 'const char [21]'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:442: error: assigning to 'std::string' (aka 'int') from incompatible type 'const char [21]'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:451: error: assigning to 'std::string' (aka 'int') from incompatible type 'const char [21]'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:453: error: assigning to 'std::string' (aka 'int') from incompatible type 'const char [21]'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:462: error: assigning to 'std::string' (aka 'int') from incompatible type 'const char [21]'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:464: error: assigning to 'std::string' (aka 'int') from incompatible type 'const char [21]'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:471: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:476: error: use of undeclared identifier 'strcmp'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:481: error: use of undeclared identifier 'strcmp' 
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:496: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:498: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:506: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:498: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:506: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:510: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:514: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:735: error: use of undeclared identifier 'FE_DOWNWARD'
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:737: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:739: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:747: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:749: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:751: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:758: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:760: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:762: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:771: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:783: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:795: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:807: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:820: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:835: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:845: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:848: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:851: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:865: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:868: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:871: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:896: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:899: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:903: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:906: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:910: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:913: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:917: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:920: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:928: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:931: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:935: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:938: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:942: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:945: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:949: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:952: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:960: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:963: error: use of undeclared identifier 'FE_UPWARD'
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:967: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:970: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:974: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:977: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:981: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:984: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:990: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:999: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1021: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1041: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1044: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1048: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1051: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1055: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1058: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1062: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1065: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1073: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1076: error: use of undeclared identifier 'FE_UPWARD'
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1080: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1083: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1087: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1090: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1094: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1097: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1109: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1324: error: use of undeclared identifier 'FE_DOWNWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1326: error: use of undeclared identifier 'FE_UPWARD'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:1328: error: use of undeclared identifier 'FE_TONEAREST'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:246: warning: unused parameter 'p'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:251: warning: unused parameter 'o'
                                      
                                      /home/ubuntu/Projekty/MetodaBairstowa/interval.h:256: warning: unused parameter 'o'
                                      

                                      I tried to analyze it but I couldn't come up with any solution... :'(

                                      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