Where do I Get libstdc++-6.dll?

I've just cross-compiled a Rust game from Linux for Windows and I'm trying to test it, but running it with wine or in a windows development VM runs into the problem that it can't find libstdc++-6.dll, and I have no idea where to get it!

Anybody have any clue where I can get that DLL?

I though it might come with Windows Visual C++ 2019 or something, but I installed it in Wine and that didn't have it.

What's in your Cargo.toml? What is the error output when you try to run the compiled game?

I found out it has something to do with my dependency on bevy-glsl-to-spirv. I think what I'm looking for is this issue:

https://github.com/cart/glsl-to-spirv/issues/10

If that works I might not need libc++-6.dll, which would be ideal. I'm trying it out now to see if it works.

1 Like

I couldn't get the static linking to work, but I did find the DLLs from the linker errors that popped up when I tried to statically link it :grin: .

All the dlls needed are in /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32! I just didn't know where to look and it took to long to fd libstdc++-6.dll / on a 450GB disk :wink: .

Copying the libstdc++-6.dll and libgcc_s_seh-1.dll to the same dir as the exe worked!

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.