Systeme fault libstdc++-6.dll missing
-
wrote on 18 Apr 2024, 19:17 last edited by
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.
-
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.
@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)
-
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.
wrote on 19 Apr 2024, 14:04 last edited by JoeCFD@Thomas199995 Did you install Visual Studio? Qt Creator does not have its own C++ compiler on Windows.
-
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.
wrote on 19 Apr 2024, 14:27 last edited by@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/4