Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. I am in include hell...again
Qt 6.12 LTS is out! See what's new in the release blog

I am in include hell...again

Scheduled Pinned Locked Moved Unsolved C++ Gurus
5 Posts 3 Posters 1.7k 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      This post is deleted!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @AnneRanch
      #include and error message show CCC_MDI as directory. Your view on the left shows CCC_mdi. Looks like a case issue.

      A 1 Reply Last reply
      1
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Apart from the path issue note that having two mainwindow.h files including each other is a recipe for trouble. One thing is that they both start with #ifdef MAINWINDOW_H, so including one within another will "cut out" the inner one. You should at least change the include guard names, but to avoid problems it's a good idea to not have duplicated file names/include guards across your build at all.

        A 1 Reply Last reply
        0
        • JonBJ JonB

          @AnneRanch
          #include and error message show CCC_MDI as directory. Your view on the left shows CCC_mdi. Looks like a case issue.

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • Chris KawaC Chris Kawa

            Apart from the path issue note that having two mainwindow.h files including each other is a recipe for trouble. One thing is that they both start with #ifdef MAINWINDOW_H, so including one within another will "cut out" the inner one. You should at least change the include guard names, but to avoid problems it's a good idea to not have duplicated file names/include guards across your build at all.

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by
            #5
            This post is deleted!
            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
            • Unsolved