Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-30 Thread Kees Bleijenberg
Brandon, thank you for your explanation. I got it working with: ghc --make testGlasPng.hs -LD:\glas\dlls -lglasPng. It needs both the -L and the -l argument. The dll is in the PATH. I don't understand why it needs the -L argument. I'll figure this out later. If I use -lglasPng.dll (additional

Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-30 Thread Brandon Allbery
On Thu, May 30, 2013 at 3:15 AM, Kees Bleijenberg k.bleijenb...@lijbrandt.nl wrote: argument. The dll is in the PATH. I don't understand why it needs the -L argument. I'll figure this out later. If I use -lglasPng.dll (additional .dll) it doesn't work either. Unix has standard places to

Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-30 Thread Kees Bleijenberg
Bleijenberg CC: haskell-cafe Onderwerp: Re: [Haskell-cafe] using a win32 dll (Happy too soon) On Thu, May 30, 2013 at 3:15 AM, Kees Bleijenberg k.bleijenb...@lijbrandt.nl wrote: argument. The dll is in the PATH. I don't understand why it needs the -L argument. I'll figure this out later. If I use

Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-30 Thread Brandon Allbery
On Thu, May 30, 2013 at 11:46 AM, Kees Bleijenberg k.bleijenb...@lijbrandt.nl wrote: Brandon, thanks again for your explanation Are you sure about the non existing search order for dynamic loaded dll’s? I.e.

Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-30 Thread Henk-Jan van Tuyl
On Thu, 30 May 2013 16:13:22 +0200, Brandon Allbery allber...@gmail.com wrote: On Thu, May 30, 2013 at 3:15 AM, Kees Bleijenberg k.bleijenb...@lijbrandt.nl wrote: argument. The dll is in the PATH. I don't understand why it needs the -L argument. I'll figure this out later. If I use

[Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-29 Thread Kees Bleijenberg
Unfortunatly the proposed solutions didn't work after all (It worked once, I think, but.) Here again the problem: glasPng.dll is a Delphi dll with the function getPngVersion in it. Calling convention is stdCall. I want to use this dll. The code: {-# LANGUAGE ForeignFunctionInterface #-}

Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-29 Thread Robert Jakob
If I compile with ghc --make testGlasPng.hs -lglasPng I get: ..\ld.exe: cannot find -lglasPng. Collect 2: ld returned 1 exit status. Ld can't find lglasPng (with the l in front, does it trim the l?). Why? Okay I try ghc --make testGlasPng.hs -Lpath to glasPng.dll I get: testGlasPng.o:

Re: [Haskell-cafe] using a win32 dll (Happy too soon)

2013-05-29 Thread Brandon Allbery
On Wed, May 29, 2013 at 9:40 AM, Kees Bleijenberg k.bleijenb...@lijbrandt.nl wrote: If I compile with ghc --make testGlasPng.hs –lglasPng I get: ….\ld.exe: cannot find –lglasPng. Collect 2: ld returned 1 exit status. ** Ld can’t find lglasPng (with the l in front, does it trim the l?).