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. error: #error "__WORDSIZE is not defined" #error "__WORDSIZE is not defined"
Forum Update on Monday, May 27th 2025

error: #error "__WORDSIZE is not defined" #error "__WORDSIZE is not defined"

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 1.2k 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.
  • nadimnadafN Offline
    nadimnadafN Offline
    nadimnadaf
    wrote on last edited by
    #1

    I will use a Qt Creator v5.8.0 & I build my project , that time this error is will show.
    How to remove it.
    error1.png

    JonBJ J.HilkJ 2 Replies Last reply
    0
    • nadimnadafN nadimnadaf

      I will use a Qt Creator v5.8.0 & I build my project , that time this error is will show.
      How to remove it.
      error1.png

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

      @nadimnadaf
      What version of Qt are you using?

      1 Reply Last reply
      0
      • nadimnadafN Offline
        nadimnadafN Offline
        nadimnadaf
        wrote on last edited by
        #3

        QT 5.8.0

        1 Reply Last reply
        0
        • nadimnadafN nadimnadaf

          I will use a Qt Creator v5.8.0 & I build my project , that time this error is will show.
          How to remove it.
          error1.png

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @nadimnadaf include nested to deeply is the problem here

          make sure you have no circle includes and all your classes have proper include guards


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • nadimnadafN Offline
            nadimnadafN Offline
            nadimnadaf
            wrote on last edited by
            #5

            error2.png

            JonBJ 1 Reply Last reply
            0
            • nadimnadafN nadimnadaf

              error2.png

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

              @nadimnadaf
              This does not help us. How/where is your own code doing any #includes? We are looking for some kind of "circular include"s somewhere.

              1 Reply Last reply
              0
              • nadimnadafN Offline
                nadimnadafN Offline
                nadimnadaf
                wrote on last edited by
                #7

                I cant able to find. Any way to find out this.

                1 Reply Last reply
                0
                • nadimnadafN Offline
                  nadimnadafN Offline
                  nadimnadaf
                  wrote on last edited by
                  #8

                  @JonB
                  Newly created project also same error throw. (Not Modified, Just Create and Build).

                  JonBJ 1 Reply Last reply
                  0
                  • nadimnadafN nadimnadaf

                    @JonB
                    Newly created project also same error throw. (Not Modified, Just Create and Build).

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

                    @nadimnadaf
                    A "new project" is hardly going to include browser.cpp or QtWebKit....

                    First thing: I believe both the errors you show come only from the Code Model you are using in Creator. Do you get these errors if you compile your code?

                    Second would probably be: how did you install Qt? I see references to /opt/fslc-framebuffer and to armv7...gnueabi, where is that coming from? Are you doing some kind of cross-compilation? Do you have the correct compiler kit toolchain selected?

                    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