This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]