GCC fails to find headers under Ubuntu

Jonathan Wakely jwakely.gcc@gmail.com
Fri Nov 13 19:08:44 GMT 2020


On Fri, 13 Nov 2020 at 15:55, Gordon McKay via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi,
>
> I have a C project, star-charter, which is a straight clone from GitHub.
>
> From my $Home in Ubuntu I have a folder, Cprojects, where I keep all my C/C++ projects, each in a separate sub-folder.
>
> My start-charter GitHub clone is in the star-charter subfolder
>
> The makefile is in the star-charter subfolder
>
> All of the source is in the src sub folder of star-charter
>
> Main.c is in the src sub-folder.
>
> Various libraries and headers are in sub-folders of src, for eample the gsl headers
>
> When I attempt to compile main.c which refere to the gsl headers in INCLUDE statements with the sub-folder gsl and header name , a file not found error is thrown.

What is the exact command you are running, and the exact error?

We can't help without accurate information about exactly what you're
doing and what the error is.


More information about the Gcc-help mailing list