| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: EMX main() |
Some senseless babbling from Jonathan De Boyne Pollard to Mike Ruskai
on 21 Apr 95 05:39:54 about EMX main()...
> Does anyone know why the EMX compiler insists that the main function has to
> return an integer? It won't accept void as the return type.
JDBP> Because that is correct C++. The *only* legal declarations for the
JDBP> distinguished function `main' are
[snip]
OK. And calm down :) I don't even program in C++. I am currently just
learning the language. The reason I ask is that with Borland C++ 3.0, it
complains if you don't return a value in the main() function, then ceases
to complain when you specify void as the value type. EMX doesn't complain
if you don't return a value.
Apparently Borland C++ doesn't follow the standards :)
[Mike Ruskai][FidoNet][ITCnet][OS/2Net][RGSNet][ibmNET]
[{Team OS/2}][mruskai{at}metronj.org]
... You still run? Only when chased.
~~~ ReneWave v1.00.wb1+
--- RG 10-5 Exp/GE 1.02+
* Origin: The Licking Factory, OS/2 in NJ! (908)815-3146 (1:107/634)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 107/634 677 696 13/24 3615/50 396/1 270/101 105/103 42 712/515 711/808 @PATH: 711/809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.