I'm a newbie so please forgive me my primitive developer language :)
I´m trying to compile a C++ program in Visual Studio Code and it works fine for me, but when i try to run the exe file on different computer I'm getting error, that I'm missing libgcc_s_seh-1.dll and libstdc++-6.dll.
I was able to solve this problem by adding '-static-libgcc' and '-static-libstdc++' flag to my compile command, but now I'm getting two more errors from missing 'libgomp-1.dll' and 'libwindthread-1.dll' and I was not able to solve this on my own. If I understand it I should have these dlls on my computer, because it's working on my computer, but I can't for some reason link them to compile together with my program
This is my compile command:
g++ -fdiagnostics-color=always -fopenmp -static-libgcc -static-libstdc++ -g -std=c++20 C:\Users\PC\Documents\DP\code\*.cpp -o C:\Users\PC\Documents\DP\code\MDSR.exe
So now my problem is the error saying I'm missing 'libgomp-1.dll' and 'libwindthread-1.dll'.