#5289: Can't use ghci with a library linked against libstdc++
---------------------------------+------------------------------------------
Reporter: bos | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.2.1
Component: GHCi | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: GHCi crash
---------------------------------+------------------------------------------
Comment(by bos):
You're right that you'll have to find the real file somehow.
It should be easiest to use `gcc -print-file-name`, as it emits far less
gunk.
On my Mac:
{{{
$ gcc -print-file-name=libstdc++.dylib
/usr/lib/gcc/i686-apple-darwin10/4.2.1/libstdc++.dylib
}}}
Under Linux:
{{{
$ gcc -print-file-name=libc.so
/usr/lib/gcc/i686-redhat-linux/4.6.0/../../../libc.so
}}}
(Alas, as the `libc.so` example shows, it doesn't interpret the linker
script.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5289#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs