GCC Compile Failure

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

 



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

[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