From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18084 invoked by alias); 9 Jul 2006 01:06:49 -0000 Received: (qmail 18060 invoked by uid 22791); 9 Jul 2006 01:06:46 -0000 X-Spam-Check-By: sourceware.org Received: from saratoga.rkirkpat.net (HELO saratoga.rkirkpat.net) (206.196.156.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 09 Jul 2006 01:06:43 +0000 Received: by saratoga.rkirkpat.net (Postfix, from userid 33) id C6A0771CED; Sat, 8 Jul 2006 19:06:40 -0600 (MDT) From: "Bill McEnaney" To: jjdevine@adelphia.net, gcc-help@gcc.gnu.org Subject: Re: GCC Compile Failure X-Mailer: NeoMail 1.22 X-IPAddress: 72.231.130.184 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-Id: <20060709010640.C6A0771CED@saratoga.rkirkpat.net> Date: Sun, 09 Jul 2006 01:06:00 -0000 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00088.txt.bz2 Hi, John, Why not include iostream.h instead of glibc?" Glibc isn't a header file. Since the iostream,h header file defines cout, you can delete the line that says that cout is a void function. Hope this helps, my good guy. Bill > Hello GCC Helpers, > > This is a program I wrote: > > #include > #include > void cout(); > main() > {printf "Hello World. /n"; > cout << "Hello/n"; > return 0; > } > > The "make" command gave me: > > gcc -o simplest simplest.c > error: glibc: no such file or directory > error: invalid operands to binary << > make: *** [simplest] Error 1 > > What's wrong? Books I have show that "<<" works fine sending output to the > monitor! > > If I comment out both the cout and #include the printf works fine > after doing a make. > > I'm using SUSE Linux 10.1 on an HP Pavilion, 165 MB HD, 512 MB RAM, AMD 3000+. > > Thanks for any help. > > John J. Devine > > ________________________________________________________________ "Pro-choice?" Then click here. http://cathinsight.com/morality/saying.htm "Men must look for the peace of Christ in the Kingdom of Christ... When once men recognize, both in private and in public life, that Christ is King, society will at last receive the great blessings of real liberty, well-ordered discipline, peace and harmony." Pope Pius XI