Re: GCC Compile Failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <glibc>
> #include <stdio.h>
> 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 <glibc> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux