🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Christopher Maeda Wed, 15 Apr 1992 03:16
__main
#410
Author: 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++?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads