From: Eric Y. K. <eri...@gm...> - 2010-01-27 21:45:41
|
On Wed, Jan 27, 2010 at 20:58:13 +0000, Jeremy O'Donoghue wrote: > > Now something strange happens when I test via ghci or runghc: > > > > could not find stdc++ dll > > The root cause of the problem is related to the MinGW gcc installation > which is part of GHC, and which does C/C++ compilation and *all* linking > for both GHC and GHCi. The basic problem is this: for some reason, > almost all libraries in MinGW are dynamically linked *except* libstdc++, > which is *always* statically linked(*). For what it's worth, something similar happens on MacOS X for me: Loading package wxcore-0.12.1.2 ... can't load .so/.DLL for: stdc++ (dlopen(libstdc++.dylib, 9): image not found) -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |