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. Systeme fault libstdc++-6.dll missing

Systeme fault libstdc++-6.dll missing

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 4 Posters 1.2k 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.
  • T Offline
    T Offline
    Thomas199995
    wrote on 18 Apr 2024, 19:17 last edited by
    #1

    I want to run a C++ project but I can't open it in the console. not in the Qt editor and not the exe either. I always get the error that libstdc++-6.dll was not found.

    I can run the code in the terminal but as i wrote, not in the console

    Is there any solution for this problem.

    J J C 3 Replies Last reply 19 Apr 2024, 07:07
    0
    • T Thomas199995
      18 Apr 2024, 19:17

      I want to run a C++ project but I can't open it in the console. not in the Qt editor and not the exe either. I always get the error that libstdc++-6.dll was not found.

      I can run the code in the terminal but as i wrote, not in the console

      Is there any solution for this problem.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 19 Apr 2024, 07:07 last edited by
      #2

      @Thomas199995 said in Systeme fault libstdc++-6.dll missing:

      I can run the code in the terminal but as i wrote, not in the console

      I don't get it: console is basically same as terminal. So where exactly does it work and where not? Did you deploy the app properly before running it? (https://doc.qt.io/qt-6/windows-deployment.html)

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

      1 Reply Last reply
      0
      • T Thomas199995
        18 Apr 2024, 19:17

        I want to run a C++ project but I can't open it in the console. not in the Qt editor and not the exe either. I always get the error that libstdc++-6.dll was not found.

        I can run the code in the terminal but as i wrote, not in the console

        Is there any solution for this problem.

        J Offline
        J Offline
        JoeCFD
        wrote on 19 Apr 2024, 14:04 last edited by JoeCFD
        #3

        @Thomas199995 Did you install Visual Studio? Qt Creator does not have its own C++ compiler on Windows.

        1 Reply Last reply
        0
        • T Thomas199995
          18 Apr 2024, 19:17

          I want to run a C++ project but I can't open it in the console. not in the Qt editor and not the exe either. I always get the error that libstdc++-6.dll was not found.

          I can run the code in the terminal but as i wrote, not in the console

          Is there any solution for this problem.

          C Offline
          C Offline
          cristian-adam
          wrote on 19 Apr 2024, 14:27 last edited by
          #4

          @Thomas199995 It looks like you are using MinGW and you are not deploying the C++ Runtime.

          Let's assume you have installed MinGW 11.2.0 via Qt SDK at C:\Qt\Tools\mingw1120_64\bin.

          You can start your application from a cmd.exe window as:

          $ cd c:\Projects\MyApp
          $ set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH%
          $ myapp.exe
          

          In order to find out which dependencies your application has, and which files to copy you can do:

          $ cd c:\Projects\MyApp
          $ set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH%
          $ objdump -x myapp.exe | findstr \.dll
          

          Then in the same cmd.exe window you do:

          $ copy /b "C:\Qt\Tools\mingw1120_64\bin\libstdc++-6.dll" .
          

          Then you can start your application without modifying the PATH environment variable.

          1 Reply Last reply
          1

          1/4

          18 Apr 2024, 19:17

          • Login

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