0

I am trying to install C library GR [Link] on Ubuntu 18.04, after following the instructions to install, there is no error while installing but when using it gives the error :

foo.c:2:10: fatal error: gr.h: No such file or directory #include ^~~~~~ compilation terminated.

This is while compiling the example given on their installation page.

Is the installation faulty? Can anyone help me regarding this?

Thank You in advance.

1 Answers1

0

By specifying location of GR through addition flags the compilation is possible.
Assuming GR is installed in /usr/local/gr.
The command to run foo.c should be :

gcc -I/usr/local/gr/include foo.c -L/usr/local/gr/lib -lGR -Wl,-rpath,/usr/local/gr/lib