🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3318

Re: Are all Windows programs ill-formed?

#3318
From: Mike Enright
Date: Mon, 12 Feb 1996 18:20
39 lines
2308 bytes
kanze@gabi.gabi-soft.fr (J. Kanze) wrote:

<snip>
>> > |> But if a compiler does not accept
>> > 
>> > |>      int main() { return 0; }
>> > 
>> > |> as a complete program, then that compiler is not a conforming C or C++
>> > |> implementation.
<snip>
>If there is not a way to get the above program to compile, link and
>execute, however, then I will have to take back my defense of Microsoft
>in previous postings.  I find this hard to believe, however.

The program does compile, link, and run, with the command 

   cl test.cpp 

The result was a Win32 version 4 console application.

I've written console apps under Windows 95 for file-format hacking and
so forth, and I've used Win32 console apps (and OS/2 character-mode
apps for that matter) as the basis of porting ray tracers and so
forth. More than once, I've had to page past Unix-bigotted rants about
how such and such wouldn't work on intel-based machines, as I scanned
through the readme's of portable programs. 

The standards for C and C++ are working. There doesn't happen to be a
standard GUI library, which is why you have funky main functions under
some of the GUI's.


--------------
Mike Enright
75032.2070@compuserve.com
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
Technical Details
Message-ID: <4fke0b$brq@news3.cts.com>
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!auster
References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de> <311417C8.4016@suphys.physics.su.oz.au> <KANZE.96Feb9173036@gabi.gabi-soft.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!auster
From: 75032.2070@compuserve.com (Mike Enright)
Newsgroups: comp.std.c++
Subject: Re: Are all Windows programs ill-formed?
Date: 12 Feb 1996 10:20:34 PST
Organization: CTS Network Services
Approved: austern@isolde.mti.sgi.com
Message-ID: <4fke0b$brq@news3.cts.com>
References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de> <311417C8.4016@suphys.physics.su.oz.au> <KANZE.96Feb9173036@gabi.gabi-soft.fr>
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Sun, 11 Feb 1996 09:46:18 GMT
X-Newsreader: Forte Free Agent 1.0.82
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMR+E/Uy4NqrwXLNJAQGEtgH/UkzMPTNon1myq9Jmfx8lu1Nym0t1q+tW
 DPzq5oYfkg9ayWsIv7yIOV7zkdBfSjIHMUIuHjiQK8pphxFdAmytSw==
 =9ePu
Originator: austern@isolde.mti.sgi.com