MinGW - Can't Link Statically to libstdc++

I just got a fresh install of MinGW with gcc/g++ 4.6.1, and I've compiled wxWidgets 2.9.3. But anytime I try to run one of my executables I get a dll error:
Entry Point Not Found

The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll.


Placing libstdc++-6.dll in the PATH fixes the problem but I don't want to be dependent on this dll. Using "-static-libgcc -static-libstdc++" does not help. In the past I have built wxWidgets statically, but now I would like to have both static and shared libraries. But I would like my executables to have as few dependencies as possible. Does it have to do with the version of gcc/g++ that I am using? Am I going to have to rebuild wxWidgets? Aaarg!


----- EDIT -----

I figured out what the error was all about, I had an older version of libstdc++-6.dll installed on my system. But I still cannot link statically to libgcc and libstdc++. I'm guessing this has to do with wxWidgets being built as a shared library.
Last edited on
Topic archived. No new replies allowed.