[Haskell-cafe] strange link error

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Mon Jan 10 17:26:15 UTC 2022


> So it works fine with `cabal run` and `cabal test` when the extra dirs are
> in .cabal file, but not fine when they are in the cabal.project.local file?
> There may or may not be a good reason for that. Could you
> search the cabal's issue tracker and either add to a ticket
> or create a new one? Thank you!

No in fact the first success story was a mistake.. due to a local install of the  library which was in the default search path of gcc.
So now I need to wrap

cabal test  and cabal run binoculars-ng

in order to set LD_LIBRARY_PATH=<path to the extra library>

It seesm strage to me that this is required when we gives cabal configure extra-lib-dirs.

cheers

Fred


More information about the Haskell-Cafe mailing list