
#12496: GHCi reports unknown symbols in Win32 when linking C and C++ libs -------------------------------------+------------------------------------- Reporter: pl | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 8.0.1 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86 Type of failure: GHC rejects | Test Case: valid program | Blocked By: | Blocking: Related Tickets: #11072 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => closed * resolution: => duplicate * related: => #11072 Comment: Hi Thanks for the report. This will be fixed by #11072, In the mean time there are several ways to work around this. including editing the cabal file for `Eigen` to include `stdc++-6` instead of `stdc++`. This will get it to work in GHCi but the executable will need `libstdc++-6.dll` to work. As a side note, even if you do this, Eigen needs to #ifdef some posix calls that are named differently on Windows. e.g. `strdup` on Windows is `_strdup`. The compiled version works because mingw-w64 has them still defined under their deprecated names. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12496#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler