rethab / bindings-dsl

Library and macros to simplify writing Haskell FFI code
https://github.com/jwiegley/bindings-dsl/wiki
BSD 3-Clause "New" or "Revised" License
38 stars 18 forks source link

I fixed it by adding the following to `bindings-hdf5.cabal`, under `library`: #37

Open ishfaq333 opened 4 years ago

ishfaq333 commented 4 years ago

I fixed it by adding the following to bindings-hdf5.cabal, under library:

  include-dirs: /usr/include/hdf5/serial
  extra-lib-dirs: /usr/lib/x86_64-linux-gnu/hdf5/serial

Should we add this to the repo? That would be useful so that other people using Ubuntu 15.04 can run stack install bindings-hdf5 globally and it would just work, rather than having to manually clone the repo, update the cabal file, and build manually.

Originally posted by @sid-kap in https://github.com/jwiegley/bindings-dsl/issues/15#issuecomment-174748864

Hi dear, I am new to all this. I successfully installed o2scl program. now when I am trying to build any program file, it shows the error "hdf5.h, no such file or directory", what should I do

jwiegley commented 4 years ago

We could add those under an ostype flag.

ishfaq333 commented 4 years ago

I am sorry dear but I am not getting you.

which file I have to modify in order for the program to compile successfully