Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved :-1: error: D8021 : invalid numeric argument '/Wextra'

    General and Desktop
    2
    7
    4193
    Loading More Posts
    • 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.
    • S
      someplaceinthemall last edited by

      I'm new to Qt Creator. Can anyone tell me how to fix this error? I have been looking online for hours to no avail.

      1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        Hi! You should provide more information.
        Where and when does it occur?
        Can you show the code?

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

        S 1 Reply Last reply Reply Quote 1
        • S
          someplaceinthemall @jsulm last edited by

          @jsulm Thanks for the reply. The code is from this Standford website: http://stanford.edu/~stepp/cppdoc/

          Long story short I decided this year I'm going to learn more low level languages starting with C++ and then get into Assembly to improve my programming skills/Linkedin profile. This course was recommended to me.

          Anyway, from the research I've done, I think it is because I have Visual Studios installed as well, and there is some confusion in the compiler. I can't uninstall VS because I actually use it for some other projects. Any help would be greatly appreciated.

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion last edited by

            VS should not be a problem. Which C++ compiler do you use? Which QtCreator and Qt did you install and how?

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

            S 1 Reply Last reply Reply Quote 1
            • jsulm
              jsulm Lifetime Qt Champion @someplaceinthemall last edited by

              @someplaceinthemall You can try to remove this line from the *.pro file: QMAKE_CXXFLAGS += -Wextra

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

              1 Reply Last reply Reply Quote 1
              • S
                someplaceinthemall last edited by

                That worked. Thank you.

                1 Reply Last reply Reply Quote 0
                • S
                  someplaceinthemall @jsulm last edited by

                  @jsulm Thanks for the reply, but the guy right beneath you figured it out. I really appreciate you taking the time to respond though.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post