🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #410

__main

#410
From: Christopher Maeda
Date: Wed, 15 Apr 1992 03:16
15 lines
1060 bytes
   Date: Tue, 14 Apr 92 22:55:21 -0400
   From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
   Message-Id: <9204150255.AA21925@vlsi1.ultra.nyu.edu>
   To: cmaeda@cs.cmu.edu
   Subject: Re:  __main

       Why do all C programs call __main?  The change logs seem to say __main
       is for C++ programs and shared libraries.

   Nothing to do with shared libraries, but it does have to do with C++
   The issue is that you might have a C main program calling a C++ function.

Huh?  If I'm compiling a C program (and I tell you as much, either by
naming my file foo.c or giving gcc the -x c option) why should I get a
bunch of crap for C++?
Technical Details
Message-ID: <9204150317.AA20781@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mc8.mach.cs.cmu.edu!cmaeda

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mc8.mach.cs.cmu.edu!cmaeda
From: cmaeda@mc8.mach.cs.cmu.edu (Christopher Maeda)
Subject: __main
Message-ID: <9204150317.AA20781@life.ai.mit.edu>
Sender: gnulists@ai.mit.edu
Reply-To: cmaeda@cs.cmu.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 15 Apr 1992 03:16:44 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 18