From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1324 invoked from network); 31 May 2020 12:34:40 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 31 May 2020 12:34:40 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 669CF9C92D; Sun, 31 May 2020 22:34:38 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id CEA0B9C606; Sun, 31 May 2020 22:34:09 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=mxes.net header.i=@mxes.net header.b="tA+VZ0HI"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id D6F859C606; Sun, 31 May 2020 22:34:06 +1000 (AEST) Received: from smtp-out-4.mxes.net (smtp-out-4.mxes.net [198.205.123.69]) by minnie.tuhs.org (Postfix) with ESMTPS id 286B89C5E5 for ; Sun, 31 May 2020 22:34:06 +1000 (AEST) Received: from squirrelmail.mxes.net (squirrelmail.mxes.net [198.205.123.113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPS id 86E8875985; Sun, 31 May 2020 08:34:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mxes.net; s=mta; t=1590928444; bh=/iAsV4Mm3Y67V2KeOJYLx0B3PWwdMU54UU0vU7UddbA=; h=Message-ID:In-Reply-To:References:Date:Subject:From:To: MIME-Version:Content-Type; b=tA+VZ0HI4rKW8/Zdz2O1FwxlYcA53Pmwp1Y5r+udT15Usx3yjnqxibqenaahelvsW 828bVOYbdCeTq55T7rEAggBDC6xqwJgX++t7ZGk+xAQXI5tTrj6hWrlKMVr20UhZkR tPNQzHJsaLRL6BfTNFWhUv60mT24eDHXEKWrpTYY= Received: from squirrelmail.tuffmail.net (squirrelmail.mxes.net [198.205.123.113]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by squirrelmail.mxes.net (Postfix) with ESMTPSA id CE46575AFF; Sun, 31 May 2020 08:34:03 -0400 (EDT) Message-ID: <193c770d408ee131dbaa9a07dba6f068.squirrel@squirrelmail.tuffmail.net> In-Reply-To: References: Date: Sun, 31 May 2020 08:34:04 -0400 From: ron@ronnatalie.com To: "Paul Riley" User-Agent: SquirrelMail/1.4.23 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-Sent-To: Subject: Re: [TUHS] LSX on the PDP-11/03 (LSI-11) X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > Anyway, I've tried compiling Hello World on LSX, and I get "1: External > definition syntax" error. Some help would be nice, but more generally, = is > anyone on this list more than vaguely familiar with LSX, or 6th Edition > itself? > > void main () { > printf("Hello World!"); > } > > It seems that the 7th Edition was the beginning of the standard library= in > C, and that this is missing in LSX. I'm not sure if printf is an intrin= sic > function in (6th Edition) C, or if it's from a library. > First off, VOID MAIN is not legal in any standard version of C. Even whe= n the language allows implementation defined extensions to the main signature, it must still return int. If you have a later version of language supported, you have to define printf rather than allowing it default define as an int returning function. Add #include