RE: GHC doesn't pass -D options to gcc

2005-01-11 Thread Krasimir Angelov
--- Simon Marlow [EMAIL PROTECTED] wrote: On 09 January 2005 12:11, Krasimir Angelov wrote: GHC doesn't pass -D option to gcc when it is used as C compiler. I don't know whether this is a bug or a feature but this makes imposible to use defines from C sources when

takeMVar causes 'Segentation fault' when called from C

2002-08-30 Thread Krasimir Angelov
Following example causes 'Segentation fault' under Linux (Mandrake). Under Windows it works well. --- module Main where import Control.Concurrent.MVar import System.IO.Unsafe main = cfun main foreign export ccall hfun :: IO () foreign import

RE: ObjectIO

2002-07-13 Thread Krasimir Angelov
--- Simon Marlow [EMAIL PROTECTED] wrote: I then upgraded my version to 5.02.3 and now ObjectIO doesn't work anywhere anymore. The linker complains in literally thousands of errors like the ones shown below. This is a shame because we did like the ObjectIO library. Ah, my colleague

Object I/O causes GHC panic

2002-02-12 Thread Krasimir Angelov
Hi The trouble is when uncomment lines 177-178 from ObjectIO/WindowDispose.hs For GHC-5.02.1 --- ghc: panic! (the `impossible' happened, GHC version 5.02.1): coreSyn/CoreUtils.lhs:98: Non-exhaustive patterns in function

Compilation of GHC under Windows

2002-01-13 Thread Krasimir Angelov
Hi How can I compile GHC from sources under Windows? I tried to compile ghc-5.02.1 and ghc-5.02.2 under cygwin but the compilation failed. First the configure program locates the installed Cygwin's ReadLine package and then then Makefile searches for the ReadLine library from the Haskell's

GHC-5.02 for Windows - BUGS

2001-10-05 Thread Krasimir Angelov
1) I have 3 directories: c:\temp\imports, c:\temp\objs and c:\temp\tst. Current directory is c:\temp. Directory c:\temp\tst contains 2 files: Main.hs and Ex.hs. Main.hs import Ex.hs I compile with ghc tst\Main.hs -itst --make -odir objs -hidir imports -o main.exe ghc raise error: FATAL: Can't

Zarjaz have a problem with Dynamic Libraries

2001-07-18 Thread Krasimir Angelov
Problem while I use Dynamic libraries from C side. Prims.o, grid.o and pack.o are compiled C modules They uses Win32 API. - DUMP C:\WinHaskell2ghci prims.o grid.o pack.o WinStub.o -lgdi32 -luser32 -lkernel32 -lcomctl32 ___ ___ _ / _ \