> I was playing around with GHC and my compiled
> dll-library of wxHaskell(see sourceForge for details).
> 
> The compilation was done with the last versions of
> msys and MinGW.
> 
> In the GHC usersguide, I saw that it was possible to
> link libraries with GHCi. So I thought, ok lets try
> that. 
> 
> The result can be seen below.
> 
> Greets Ron
> 
> C:\ghc\ghc-6.0.1\bin>ghci -l
> "C:\msys\1.0\local\lib\wxc.dll"
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version
> 6.0.1, for Haskell 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
> 
> Loading package base ... linking ... done.
> Loading object (static) C:/msys/1.0/local/lib/wxc.dll
> ... Not x86 PEi386
> C:\GHC\GHC-60~1.1\BIN\GHC.EXE: panic! (the
> `impossible' happened, GHC version 6
> 0.1):
>         loadObj: failed

To do this you need to use slightly different command-line flags,
something like this:

   ghci -L"C;\msys\1.0\local\lib" -lwxc

GHCi should really allow DLLs and SOs to be named explicitly on the
command line without having to use the -L/-l combination.  I'll look
into fixing it.

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to