Hi Brian,

I'm trying to track down the wxHaskell in ghci bug on my Windows
platform, and I'm running into an issue which is stopping me from
getting anywhere before I even start.

The problem probably stems from the way wxHaskell is compiled under
MinGW, which doesn't seem to behave quite as I would expect. Output for
your minimal 'test'hs' program (per the post a couple of days back):

C:\jodonoghue\haskell>ghci test.hs
GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Main             ( test.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
Loading package syb ... linking ... done.
Loading package base-3.0.3.1 ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
Loading package containers-0.2.0.1 ... linking ... done.
Loading package bytestring-0.9.1.4 ... linking ... done.
Loading package old-locale-1.0.0.1 ... linking ... done.
Loading package old-time-1.0.0.2 ... linking ... done.
Loading package filepath-1.1.0.2 ... linking ... done.
Loading package Win32-2.2.0.0 ... linking ... done.
Loading package directory-1.0.0.3 ... linking ... done.
Loading package stm-2.1.1.2 ... linking ... done.
Loading package parsec-2.1.0.1 ... linking ... done.
Loading package time-1.1.2.4 ... linking ... done.
Loading package wxdirect-0.12.1.1 ... linking ... done.
Loading package wxcore-0.12.1.2 ... <interactive>: stdc++: The specified
module could not be found.
can't load .so/.DLL for: stdc++ (addDLL: could not load DLL)

I notice that in the wxcore Setup.hs build file, you manually append
stdc++ to the list of libraries reported by wx-config.

One consequence of this seems to be that ghci thinks it needs to load
libstdc++, and this does not exist as a DLL on Windows. Actually, it is
not needed as the wxWidgets DLL is statically linked with libstdc++ on
Windows (I've run a dependency checker on the wxWidgets DLL, and it
depends only on mingwm10.dll and the usual standard set of Microsoft
system DLLs).

I don't think wxcore actually depends on libstdc++. wxWidgets does
(unless you explicitly compile without it) for sure, and I assume that
on Linux you therefore need the libstdc++ to make everything link. Is
this correct?

I'm going to experiment with removing the libstdc++ dependency for
Windows platforms, to see if this makes the problem go away. I'll keep
you posted.

Regards
Jeremy
-- 
  Jeremy O'Donoghue
  jeremy.odonog...@gmail.com


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to