Re: gcc setup problem
Can anyone see what's gone wrong? Here is the program I am trying to compile -
$ cat hello.c
#include <iostream.h>
// This program prints "Hello, World."
main ()
{
cout << "Hello, World.\n";
return 0;
}
Your basic problem is that this is not a C program. It is a C++
program. Thus, you must give it a C++ extension (rename it to
hello.cc) and invoke the C++ compiler (`g++ hello.cc').
An equivalent C program:
#include <stdio.h>
int
main (void)
{
puts ("Hello, World.");
return 0;
}
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: