public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: GCC fails to find headers under Ubuntu
       [not found] <5faeac7f.1c69fb81.b55df.57c2SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2020-11-13 19:08 ` Jonathan Wakely
  2020-11-15 15:16   ` GORDON MCKAY
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2020-11-13 19:08 UTC (permalink / raw)
  To: Gordon McKay; +Cc: gcc-help

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GCC fails to find headers under Ubuntu
  2020-11-13 19:08 ` GCC fails to find headers under Ubuntu Jonathan Wakely
@ 2020-11-15 15:16   ` GORDON MCKAY
  0 siblings, 0 replies; 4+ messages in thread
From: GORDON MCKAY @ 2020-11-15 15:16 UTC (permalink / raw)
  To: Jonathan Wakely, jimw; +Cc: gcc-help


Hi Jonathan, Jim

Thank you for your swift response!

I'm afraid it was a relatively simple error I had made. I as attempting 
to perform steps in the 'makefile' individually without due regard to 
some fairly important bits of it.

I had cloned the GitHub 'star-charter' repository correctly and ensured 
that the gsl libraries were also present and correct. When I perform 
'make' instead of trying to be clever it all works correctly.

Thanks again,
Gordon
------ Original Message ------
From: "Jonathan Wakely" <jwakely.gcc@gmail.com>
To: "Gordon McKay" <gordon_mckay@btinternet.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Sent: Friday, 13 Nov, 20 At 19:08
Subject: Re: GCC fails to find headers under Ubuntu
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: GCC fails to find headers under Ubuntu
       [not found] <5faeabef.1c69fb81.3ead6.65e7SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2020-11-14  2:56 ` Jim Wilson
  0 siblings, 0 replies; 4+ messages in thread
From: Jim Wilson @ 2020-11-14  2:56 UTC (permalink / raw)
  To: Gordon McKay; +Cc: gcc-help

On Fri, Nov 13, 2020 at 7:53 AM Gordon McKay via Gcc-help <
gcc-help@gcc.gnu.org> wrote:

> 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.
> I have tried everything to correct this apparenty simple problem.
>

You didn't provide enough details to reproduce.  However, gsl is a common
linux package.  The program is probably expecting to find the headers in
/usr/include/gsl.  Try something like "sudo apt install libgsl-dev" to
install the package so that the headers can be found.  Not clear how you
got gsl into a subfolder.  I doubt that is part of the star-chart program.

Jim

^ permalink raw reply	[flat|nested] 4+ messages in thread

* GCC fails to find headers under Ubuntu
@ 2020-11-13 15:53 Gordon McKay
  0 siblings, 0 replies; 4+ messages in thread
From: Gordon McKay @ 2020-11-13 15:53 UTC (permalink / raw)
  To: gcc-help

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. 

I have tried everything to correct this apparenty simple problem.

Can you help

Thanks
G.McKay

Sent from Mail for Windows 10


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-15 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5faeac7f.1c69fb81.b55df.57c2SMTPIN_ADDED_BROKEN@mx.google.com>
2020-11-13 19:08 ` GCC fails to find headers under Ubuntu Jonathan Wakely
2020-11-15 15:16   ` GORDON MCKAY
     [not found] <5faeabef.1c69fb81.3ead6.65e7SMTPIN_ADDED_BROKEN@mx.google.com>
2020-11-14  2:56 ` Jim Wilson
2020-11-13 15:53 Gordon McKay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).