gcc v3.0.1 vs gcc v2.95.3 -- KDE 2.2.1
Christos Ricudis
ricudis at paiko.gr
Sun Dec 2 00:51:01 EET 2001
Hello V13!
On 01 Dec 01, V13 wrote to All with subject "Re: gcc v3.0.1 vs gcc v2.95.3 --
KDE 2.2.1":
V> Desto ligo kalytera:
V> $ cat a.cc
V> int main(int n) {}
V> void main(char *p) {}
V> $ cat b.cc
V> int mmmm(int n) {}
V> void mmmm(char *p) {}
V> 2) Einai aplo overloading
Mallon kanenas (kai oute o compiler profanws) mporei na katalabei giati
8a'8eles na kaneis overload th main(). Eksallou, apagoreyetai :
This is stated in section 3.6.1 of the C++ standard (ISO/IEC FDIS
14882:1998(E)) paragraph 2:
An implementation shall not predefine the main function. This
function shall not be overloaded. It shall have a return type of type
int, but otherwise its type is implementation-defined. All
implementations shall allow both of the following definitions of
main:
int main() { /* ... */ }
and
int main(int argc, char* argv[]) { /* ... */ }
--
Christos Ricudis
If god us wanted to RPN use, he would us made this way talk
More information about the Linux-greek-users
mailing list