FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-31-2008, 04:45 PM
whoosh
 
Default Ubuntu gcc header files missing

I at last installed Ubuntu Desktop 8.04.1

one useful thing is it has generated a full bootloader for ALL

my bootable partitions.




HOWEVER, trying gcc with eg:


test.c which is just:


#include <stdio.h>


gcc cannot find <stdio.h>

ALL C compilers should find <stdio.h>

that header goes all the way back to the invention of C.

this is x86_64-linux-gnu gcc 4.2.3


gcc -v -c test.c -o test.o

shows the search path, the only search directories which exist are:

/usr/local/include

/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include

/usr/include

NONE of which are any use.






--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2008, 04:57 PM
"Shrikar archak"
 
Default Ubuntu gcc header files missing

U need to install libstdc6 to get the header files they are not installed by default. U can use synaptic to get it installed

Rgds,
Shrikar

On Thu, Jul 31, 2008 at 10:15 PM, whoosh <whoosh777@blueyonder.co.uk> wrote:





I at last installed Ubuntu Desktop 8.04.1



one useful thing is it has generated a full bootloader for ALL



my bootable partitions.









HOWEVER, trying gcc with eg:





test.c which is just:





#include <stdio.h>





gcc cannot find <stdio.h>



ALL C compilers should find <stdio.h>



that header goes all the way back to the invention of C.



this is x86_64-linux-gnu gcc 4.2.3





gcc -v -c test.c -o test.o



shows the search path, the only search directories which exist are:



/usr/local/include



/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include



/usr/include



NONE of which are any use.













--

ubuntu-users mailing list

ubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2008, 05:01 PM
Ansgar Burchardt
 
Default Ubuntu gcc header files missing

Hi,

whoosh <whoosh777@blueyonder.co.uk> writes:
> HOWEVER, trying gcc with eg:
> test.c which is just:
>
> #include <stdio.h>
>
> gcc cannot find <stdio.h>

You probably did not install the C library headers. Install the package
`libc6-dev' (or `build-essential' which will also install some other
helpful programs).

Regards,
Ansgar

--
PGP: 1024D/595FAD19 739E 2D09 0969 BEA9 9797 B055 DDB0 2FF7 595F AD19


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 04:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org