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
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
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
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.
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
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 #-}
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:
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?).