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. :-1: error: D8021 : invalid numeric argument '/Wextra'
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 4.8k 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.
  • S Offline
    S Offline
    someplaceinthemall
    wrote on last edited by
    #1

    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
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1
      • jsulmJ jsulm

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

        S Offline
        S Offline
        someplaceinthemall
        wrote on last edited by
        #3

        @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.

        jsulmJ 1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          1
          • S someplaceinthemall

            @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.

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

            @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
            1
            • S Offline
              S Offline
              someplaceinthemall
              wrote on last edited by
              #6

              That worked. Thank you.

              1 Reply Last reply
              0
              • jsulmJ jsulm

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

                S Offline
                S Offline
                someplaceinthemall
                wrote on last edited by
                #7

                @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
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved