This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: g++ in 3.0.2
- From: "Venkatesh, Vangal" <vangal dot venkatesh at intel dot com>
- To: "'Paolo Carlini'" <pcarlini at unitus dot it>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 16 Nov 2001 16:58:51 -0800
- Subject: RE: g++ in 3.0.2
Paolo,
I have figured out the problem. gcc 2.96 will compile this file ok but
not 3.0.2 as main has to return an int.
#include <iostream.h>
void main(){
cout << "Hello World" << endl;
}
Thanks,
Vangal