Please excuse me if this isn’t the correct place for this question or if I’ve misunderstood something, or am not understanding something obvious, but I wasn’t really sure where the best place to ask was and I have been unable to locate anything relevant to my particular situation in any of the forums (both and sites).


I am in the process of switching from an older version of cygwin gcc where I previously used the –mno-cygwin flag in order to utilize the mingw compiler portion.  With the new latest version, it appears I need to change to explicitly install and utilize the mingw compiler.  After making the change, I have now encountered a situation where my compiled executable is no longer working/loading correctly.  Debugging the problem using the “cygcheck” tool, I was able to determine that the object was failing because it could not locate “libstdc++-6.dll”.


cygcheck: track_down: could not find libstdc++-6.dll


I thus located ./gcc/i686-pc-mingw32/4.5.2/debug/libstdc++-6.dll and copied it to my local build area, which ultimately resolved my issue.  However, I would prefer NOT to have to distribute this dll with my executables and I am thus now attempting to figure out how to link this new apparently required library statically, however I can’t seem to locate libstdc++-6.a or anywhere in my cygwin repository.  Anyone who can provide me with any further insight or useful information would be greatly appreciated!


Thanks in advance.