about main must return "int"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I am new with this list, and I need your help.

After installing Redhat 8.0 which has gcc 3.2, I ran into a problem when recompiling a project. with c++. It errors out on "main" must return "int". All my old codes with "void" main. I used c++ from egcs-1.1-2 (redhat 7.3) and it was no problem there. My question is: Is this a bug of gcc 3.2, or this is a permanent change and I will have to change my codes?

Thank you very much.

-Amy



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux