g++ in 3.0.2

Venkatesh, Vangal vangal.venkatesh@intel.com
Wed Nov 7 06:46:00 GMT 2001


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



More information about the Gcc-help mailing list