public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Newbie needs help setting up GCC and GLIBC
@ 1999-11-09 20:15 Terence Kirk
  1999-11-09 20:54 ` Paul D. Smith
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Terence Kirk @ 1999-11-09 20:15 UTC (permalink / raw)
  To: help-gcc

I have many years experience working with C/++ in the Wintel world, and
I'm trying to get my bearings in the Linux universe. I  am running
RedHat 5.1.

When I do an "rpm -qa | grep gcc", I get the following:

    gcc-2.7.2.3-13

When I do an "rpm -qa | grep lib", I get the following:

    glibc-2.0.7-19
    libtermcap-2.0.8-9
    zlib-1.1.2-2
    cracklib-2.7-2
    cracklib-dicts-2.7-2
    glib-1.0.1-3
    gnome-libs-0.13-10
    imlib-1.6-1
    libc-5.3.12-27
    libg++-2.7.2.8-9
    libgr-2.0.13-12
    libgr-progs-2.0.13-12
    libjpeg-6b-5
    libpng-1.0.1-3
    libstdc++-2.8.0-12
    libtiff-3.4-4
    libungif-3.0-4
    pythonlib-1.22-1
    svgalib-1.2.13-3
    XFree86-libs-3.3.2-16

I have written the following program:

    #include <stdio.h>

    main()
    {
            printf("Hello world");
    }

(Yeah, I know, pretty original)

I compile with the following command...

    gcc test.c -o test

...and I get the following error message:

    test.c:1: stdio.h: No such file or directory

I have executed...

    find /. -name stdio.h -print

...and sure enough, it's not there. I have scoured the gcc how-to, and
tried to follow the glib how-to, as well as the gnu.org site, but
frankly I'm lost. There's too much detail. I'm not sure whether rpm
installs the binaries, or whether I have to go through the whole compile
/ link process for the libraries or what. I've spent several hours in
bookshops paging through every book I can find on Linux or C++ for some
clues, and searched every news group that seems remotely related to GNU,
but no luck yet.

Can anyone tell me where I can find a simple step by step guide on how
to become operational, or even better tell me what I'm doing wrong?

Thanks

Terence Kirk

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Newbie needs help setting up GCC and GLIBC
@ 1999-11-10 22:52 er-chan
  1999-11-30 23:28 ` er-chan
  0 siblings, 1 reply; 16+ messages in thread
From: er-chan @ 1999-11-10 22:52 UTC (permalink / raw)
  To: help-gcc; +Cc: tkirk

You have used the command line

       gcc test.c -o  test

I'm a newbie myself but thought it should be

      gcc  -o  test  test.c

I hope this helps one of us.


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

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-09 20:15 Newbie needs help setting up GCC and GLIBC Terence Kirk
1999-11-09 20:54 ` Paul D. Smith
1999-11-10 16:26   ` Terence Kirk
1999-11-30 23:28     ` Terence Kirk
1999-11-30 23:28   ` Paul D. Smith
1999-11-09 21:15 ` Arthur Gold
1999-11-30 23:28   ` Arthur Gold
1999-11-10  5:52 ` Michael P DiGioia
1999-11-10  6:57   ` Paul D. Smith
1999-11-30 23:28     ` Paul D. Smith
1999-11-10  8:04   ` Michael P DiGioia
1999-11-30 23:28     ` Michael P DiGioia
1999-11-30 23:28   ` Michael P DiGioia
1999-11-30 23:28 ` Terence Kirk
1999-11-10 22:52 er-chan
1999-11-30 23:28 ` er-chan

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).