For a C project I’m writing I need to use the GMP library, which I have untarred into my Home directory (using OpenBSD OS with bash). I’m working with others over git, so I can’t change the headers to relative files and at the moment the GCC is giving errors about not being able to find it. I don’t have root privelidges, so I can’t just install it.
How do I get the GCC to look for the GMP library in my home folder instead of the usual place?
When compiling use the argument
-Ito tell GCC where to look for header files, and-Lto tell GCC where to look for libraires.For example: