Why doesn GHC use shared libraries?
GHC does provide shared libraries, currently only on MacOS X. We are working on making shared libraries work on other platforms. However, GHC-compiled libraries are very tightly coupled, which means it’s unlikely you’d be able to swap out a shared library for a newer version unless it was compiled with exactly the same compiler and set of libraries as the old version.
Related Questions
- Appcert reports a number of unbound symbols in one of my applications shared objects, but they are symbols in Solaris libraries that the shared object calls. Why doesn appcert recognize them?
- Why do I get the error message "ERROR while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory" when I try to start Gridgen on my OpenSuse machine?
- Under Linux, upon running my application, why do I get the error message "error while loading shared libraries: libwx_gtk-x.x.so"?