Qt Forum

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

    Unsolved Unrecognized Command Error

    General and Desktop
    2
    4
    608
    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.
    • G
      gabor53 last edited by

      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.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @gabor53 last edited by 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?

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

        G 1 Reply Last reply Reply Quote 2
        • G
          gabor53 last edited by

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

          1 Reply Last reply Reply Quote 0
          • G
            gabor53 @jsulm last edited by

            @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 Reply Quote 0
            • First post
              Last post