gmp
gmp copied to clipboard
gmp.h missing
Hi
Can you include the gmp.h file? I'm getting the following error.

You need to make sure you have libgmp-dev installed and it should provide the gmp.h file.
Amazingly I seem to have missed that from the docs!
Thanks! Sorted now :)
how to do that in windows?
If anyone needs more help, I did the following on MacOS before successfully running go build:
brew install gmpgo get github.com/ncw/gmpCGO_CPPFLAGS="-I/opt/homebrew/include"- I got this path from
find /usr /opt -name "gmp.h", but it's wherever gmp.h can be found or was installed.
- I got this path from
CGO_LDFLAGS="-L/opt/homebrew/lib"