GCC Compile Failure
jjdevine
jjdevine@adelphia.net
Sat Jul 8 20:18:00 GMT 2006
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
More information about the Gcc-help
mailing list