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. Unrecognized Command Error
Qt 6.11 is out! See what's new in the release blog

Unrecognized Command Error

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 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.
  • G Offline
    G Offline
    gabor53
    wrote on last edited by
    #1

    Hi,
    When I try to run my code I get the following error message:
    :-1: error: error: unrecognized command line option '-nostdlib++'; did you mean '-nostdlib'?
    I use Qt.5.12.3. MinGW 32-bit .
    I assume I need to change -nostdlib++ to '-nostdlib, but where can I find this command line?
    Thank you for your help.

    jsulmJ 1 Reply Last reply
    0
    • G gabor53

      Hi,
      When I try to run my code I get the following error message:
      :-1: error: error: unrecognized command line option '-nostdlib++'; did you mean '-nostdlib'?
      I use Qt.5.12.3. MinGW 32-bit .
      I assume I need to change -nostdlib++ to '-nostdlib, but where can I find this command line?
      Thank you for your help.

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

      @gabor53 This is a compile time error, not runtime.
      How did you setup Qt and MinGW?
      Do you use MinGW provided via Qt installer?

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

      G 1 Reply Last reply
      2
      • G Offline
        G Offline
        gabor53
        wrote on last edited by
        #3

        Hi,
        It was a faulty installation. I reinstalled it and it works fine now.
        Thank you for your help.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @gabor53 This is a compile time error, not runtime.
          How did you setup Qt and MinGW?
          Do you use MinGW provided via Qt installer?

          G Offline
          G Offline
          gabor53
          wrote on last edited by
          #4

          @jsulm
          I keep having the same problem. I have Qt Creator 4.10.2 Qt 5.13.2. (MSVC 2017, 32 bit) From revision 7c61e936ce.
          My kits:
          1.PNG

          ![2.PNG](https://ddgobkiprc33d.cloudfront.net/ceacb52d-0c1a-48 57-be83-f556ad03ac9b.PNG)

          3.PNG

          I set up everything using the Qt installer.

          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