Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SOLVED compiler "unresolved inclusion" is not an error ?

SOLVED compiler "unresolved inclusion" is not an error ?

Scheduled Pinned Locked Moved C / C++ / MFC
announcementhelpquestion
7 Posts 5 Posters 1 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.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    SOLVED case closed As expected - pkg-config DOES NOT integrate with just any Eclipse version / release. I got it working as expected in 2018-09! Sorry for wasting everybody time. Cheers This is really driving me nuts. The verbose output form complier and project GUI will show same /usr/include.... However only full path include file passes test #include /usr/include/gtkmm-3.0/gtkmm.h Including gtkmm.h by itself , will show "unresolved inclusion" #include "gtkmm.h" On top of this - build is successful, no errors and it runs. So "unresolved inclusion" error is no error ?

    K M 2 Replies Last reply
    0
    • V Vaclav_

      SOLVED case closed As expected - pkg-config DOES NOT integrate with just any Eclipse version / release. I got it working as expected in 2018-09! Sorry for wasting everybody time. Cheers This is really driving me nuts. The verbose output form complier and project GUI will show same /usr/include.... However only full path include file passes test #include /usr/include/gtkmm-3.0/gtkmm.h Including gtkmm.h by itself , will show "unresolved inclusion" #include "gtkmm.h" On top of this - build is successful, no errors and it runs. So "unresolved inclusion" error is no error ?

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #2

      I can only assume that eclipse is doing something. Normally, a header file that can't be found results in a fatal error. If you really are using #include "gtkmm.h", maybe eclipse is searching the project directory for the include file and that is what is generating the warning message. GCC/G++ on the other hand, searches the project directory and then the normal system directories for "" delimited include files [Include Syntax (The C Preprocessor)](https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html) If it is the case that you're using #include "gtkmm.h" try changing to #include , and see if that removes the warning.

      Keep Calm and Carry On

      V L 2 Replies Last reply
      0
      • K k5054

        I can only assume that eclipse is doing something. Normally, a header file that can't be found results in a fatal error. If you really are using #include "gtkmm.h", maybe eclipse is searching the project directory for the include file and that is what is generating the warning message. GCC/G++ on the other hand, searches the project directory and then the normal system directories for "" delimited include files [Include Syntax (The C Preprocessor)](https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html) If it is the case that you're using #include "gtkmm.h" try changing to #include , and see if that removes the warning.

        Keep Calm and Carry On

        V Offline
        V Offline
        Vaclav_
        wrote on last edited by
        #3

        If it is the case that you're using #include "gtkmm.h" try changing to #include , and see if that removes the warning. I do not know how to enter greater / less then charactere here. I did try #include ( i just cut and paste your text ) with same result. If you czech my next post you will find the answer - I am inclined to believe it is IDE problem. After I did "new project" from scratch the build fails as expected when the file cannot be found. Addendum This is just to keep the discussion going. I did not verify this , but it looks as every time backtick string is added the build process has no error but the includes which cannot be satisfied are flagged as such in source file. I am begging to question WHERE does the backtick string belong - as an option to complier or elsewhere? ( See the other discussion about backtick.)

        V 1 Reply Last reply
        0
        • V Vaclav_

          SOLVED case closed As expected - pkg-config DOES NOT integrate with just any Eclipse version / release. I got it working as expected in 2018-09! Sorry for wasting everybody time. Cheers This is really driving me nuts. The verbose output form complier and project GUI will show same /usr/include.... However only full path include file passes test #include /usr/include/gtkmm-3.0/gtkmm.h Including gtkmm.h by itself , will show "unresolved inclusion" #include "gtkmm.h" On top of this - build is successful, no errors and it runs. So "unresolved inclusion" error is no error ?

          M Offline
          M Offline
          Member_14892997
          wrote on last edited by
          #4

          Nice post here ii want to say that, to get any instant support for this, or any other then they can go here....Lenovo Telefoonnummer +32-63681637 | Klantenservice Belgie[^]

          1 Reply Last reply
          0
          • V Vaclav_

            If it is the case that you're using #include "gtkmm.h" try changing to #include , and see if that removes the warning. I do not know how to enter greater / less then charactere here. I did try #include ( i just cut and paste your text ) with same result. If you czech my next post you will find the answer - I am inclined to believe it is IDE problem. After I did "new project" from scratch the build fails as expected when the file cannot be found. Addendum This is just to keep the discussion going. I did not verify this , but it looks as every time backtick string is added the build process has no error but the includes which cannot be satisfied are flagged as such in source file. I am begging to question WHERE does the backtick string belong - as an option to complier or elsewhere? ( See the other discussion about backtick.)

            V Offline
            V Offline
            Vaclav_
            wrote on last edited by
            #5

            It's official - adding `pkg-config gtkmm-3.0 --cflags --libs` to either complier or linker options generates this problem. If there is #include file in source WHICH cannot be found, it is flagged , but the build is without an error and runs. As far as build goes there are NO errors! Is it possible I am putting the backtick string in wrong place ?

            L 1 Reply Last reply
            0
            • K k5054

              I can only assume that eclipse is doing something. Normally, a header file that can't be found results in a fatal error. If you really are using #include "gtkmm.h", maybe eclipse is searching the project directory for the include file and that is what is generating the warning message. GCC/G++ on the other hand, searches the project directory and then the normal system directories for "" delimited include files [Include Syntax (The C Preprocessor)](https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html) If it is the case that you're using #include "gtkmm.h" try changing to #include , and see if that removes the warning.

              Keep Calm and Carry On

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              I have used eclipse extensively in the past and it works fine. Your comment re double quotes versus angle brackets is correct. But that (and all the other issues) are nothing to do with eclipse, but about how the compiler search paths work.

              1 Reply Last reply
              0
              • V Vaclav_

                It's official - adding `pkg-config gtkmm-3.0 --cflags --libs` to either complier or linker options generates this problem. If there is #include file in source WHICH cannot be found, it is flagged , but the build is without an error and runs. As far as build goes there are NO errors! Is it possible I am putting the backtick string in wrong place ?

                L Offline
                L Offline
                leon de boer
                wrote on last edited by
                #7

                In Eclipse, you open the Properties of your project -> expand "C/C++ General" -> "Paths and Symbols". include dir is not right add the directory to it or fix what is there It throws that warning then goes down the search path set in enviroment and then finds it. So you end up compiling fine with a stupid warning in between.

                In vino veritas

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups