Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. g++: error: unrecognized command line option '-W3'
Forum Updated to NodeBB v4.3 + New Features

g++: error: unrecognized command line option '-W3'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 4 Posters 1.1k 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.
  • L Offline
    L Offline
    laci7722
    wrote on 24 Feb 2022, 14:24 last edited by
    #1

    Hi!
    I get the following errors in my translation queue.
    What can I do?
    Win7 x64.

    15:00:00: Running steps for project scan3d-capture...
    15:00:00: Configuration unchanged, skipping qmake step.
    15:00:00: Starting: "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe"
    C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'C:/scan3d/project'
    g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -W3 -wd4396 -wd4100 -wd4996 -fexceptions -mthreads -DUNICODE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I../../opencvbuild/install/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtOpenGL -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtWidgets -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtANGLE -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore -Irelease -IGeneratedFiles -I../../Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -o release/main.o ../src/main.cpp
    g++: error: unrecognized command line option '-W3'
    g++: error: unrecognized command line option '-wd4396'
    g++: error: unrecognized command line option '-wd4100'
    g++: error: unrecognized command line option '-wd4996'
    Makefile.Release:1880: recipe for target 'release/main.o' failed
    mingw32-make[1]: *** [release/main.o] Error 1
    mingw32-make[1]: Leaving directory 'C:/scan3d/project'
    makefile:34: recipe for target 'release' failed
    mingw32-make: *** [release] Error 2
    15:00:03: The process "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project scan3d-capture (kit: Desktop Qt 5.5.1 MinGW 32bit)
    When executing step "Make"
    15:00:03: Elapsed time: 00:03.

    General Messages:
    Warnings while parsing QML type information of C:/Qt/Qt5.5.1/5.5/mingw492_32/qml:
    <dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:1:24: Reading only version 1.1 parts.
    <dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:10:5: Expected only Component and ModuleApi object definitions.

    J 1 Reply Last reply 24 Feb 2022, 14:37
    0
    • K Offline
      K Offline
      kkoehne
      Moderators
      wrote on 24 Feb 2022, 14:37 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • L laci7722
        24 Feb 2022, 14:24

        Hi!
        I get the following errors in my translation queue.
        What can I do?
        Win7 x64.

        15:00:00: Running steps for project scan3d-capture...
        15:00:00: Configuration unchanged, skipping qmake step.
        15:00:00: Starting: "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe"
        C:/Qt/Qt5.5.1/Tools/mingw492_32/bin/mingw32-make -f Makefile.Release
        mingw32-make[1]: Entering directory 'C:/scan3d/project'
        g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=c++0x -frtti -Wall -Wextra -W3 -wd4396 -wd4100 -wd4996 -fexceptions -mthreads -DUNICODE -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I../../opencvbuild/install/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtOpenGL -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtWidgets -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtANGLE -I../../Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore -Irelease -IGeneratedFiles -I../../Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -o release/main.o ../src/main.cpp
        g++: error: unrecognized command line option '-W3'
        g++: error: unrecognized command line option '-wd4396'
        g++: error: unrecognized command line option '-wd4100'
        g++: error: unrecognized command line option '-wd4996'
        Makefile.Release:1880: recipe for target 'release/main.o' failed
        mingw32-make[1]: *** [release/main.o] Error 1
        mingw32-make[1]: Leaving directory 'C:/scan3d/project'
        makefile:34: recipe for target 'release' failed
        mingw32-make: *** [release] Error 2
        15:00:03: The process "C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
        Error while building/deploying project scan3d-capture (kit: Desktop Qt 5.5.1 MinGW 32bit)
        When executing step "Make"
        15:00:03: Elapsed time: 00:03.

        General Messages:
        Warnings while parsing QML type information of C:/Qt/Qt5.5.1/5.5/mingw492_32/qml:
        <dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:1:24: Reading only version 1.1 parts.
        <dump of C:\Qt\Qt5.5.1\5.5\mingw492_32\qml>:10:5: Expected only Component and ModuleApi object definitions.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 24 Feb 2022, 14:37 last edited by
        #3

        @laci7722 said in g++: error: unrecognized command line option '-W3':

        -W3 -wd4396 -wd4100 -wd4996

        No idea what all these parameters are.
        Check the pro file and remove these parameters if they are set there.

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

        L S 2 Replies Last reply 24 Feb 2022, 17:21
        1
        • J jsulm
          24 Feb 2022, 14:37

          @laci7722 said in g++: error: unrecognized command line option '-W3':

          -W3 -wd4396 -wd4100 -wd4996

          No idea what all these parameters are.
          Check the pro file and remove these parameters if they are set there.

          L Offline
          L Offline
          laci7722
          wrote on 24 Feb 2022, 17:21 last edited by
          #4

          @jsulm said in g++: error: unrecognized command line option '-W3':

          Check the pro file and remove these parameters if they are set there.

          Thank you for your help my friend!

          "Check the pro file and remove these parameters if they are set there."

          1 Reply Last reply
          0
          • J jsulm
            24 Feb 2022, 14:37

            @laci7722 said in g++: error: unrecognized command line option '-W3':

            -W3 -wd4396 -wd4100 -wd4996

            No idea what all these parameters are.
            Check the pro file and remove these parameters if they are set there.

            S Offline
            S Offline
            SimonSchroeder
            wrote on 25 Feb 2022, 07:53 last edited by
            #5

            @jsulm said in g++: error: unrecognized command line option '-W3':

            No idea what all these parameters are.

            These look like Intel compiler options. -W3 enables remarks besides warnings and errors. -wdNNNN disables a specific warning number. So, it depends on the compiler if these make sense.

            1 Reply Last reply
            1
            • K Offline
              K Offline
              kkoehne
              Moderators
              wrote on 25 Feb 2022, 08:35 last edited by
              #6

              @SimonSchroeder said in g++: error: unrecognized command line option '-W3':

              These look like Intel compiler options.

              Not only Intel, but also Visual Studio : https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170

              @laci7722 , if you cannot find them in your .pro / .pri files , you can use 'qmake -d' to generate a (rather verbose) trace of where qmake pulls it's options from.

              1 Reply Last reply
              1

              1/6

              24 Feb 2022, 14:24

              • Login

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