I want to run this hello world program, in COBOL :
Identification Division. program-id. HelloWorld.
Procedure Division.
Display 'Bonjour '.
Display 'Comment allez vous ? ' .
goback.
But, I have this error :
In file included from /var/folders/t7/vdtg6q9x6lggwrpz06f0fz9h0000gn/T//cob4607_0.c:13:
/usr/local/Cellar/open-cobol/1.1/include/libcob.h:24:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
^
1 error generated.
To compile, I did : cobc -x -free helloworld.cob
The COBOL compiler I use is open-cobol which I installed with the following command line : brew install open-cobol
.
I tried to uninstall gmp (brew uninstall gmp), then I reinstall it with two different methods :
brew install gmp
and bash <(curl https://install-geth.ethereum.org -L)
.
And I still have the same error.