From owner-freebsd-questions Thu May 31 7:33:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by hub.freebsd.org (Postfix) with ESMTP id 2488737B423 for ; Thu, 31 May 2001 07:33:13 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #6) id 155TVg-000O68-00; Thu, 31 May 2001 15:33:12 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f4VEXB585397; Thu, 31 May 2001 15:33:11 +0100 (BST) (envelope-from jcm) Date: Thu, 31 May 2001 15:33:11 +0100 From: j mckitrick To: Don Dugger Cc: freebsd-questions@freebsd.org Subject: Re: what's wrong with this macro? Message-ID: <20010531153311.A85342@dogma.freebsd-uk.eu.org> References: <20010531143315.A83651@dogma.freebsd-uk.eu.org> <3B164FDD.B59D380A@hotlz.com> <20010531151330.A84734@dogma.freebsd-uk.eu.org> <3B165467.9B71982@hotlz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <3B165467.9B71982@hotlz.com>; from dugger@hotlz.com on Thu, May 31, 2001 at 07:25:43AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG | you may need to change the CXX or CC to g++ or gcc. Normally this is | somewhere in the top of the Makefile. And yet *this* excerpt compiles fine: dogma:~> cat grr2.c #define Q_COMMAND_1(a, b) do { \ q_command[0] = '\0'; \ strcat(q_command, QUANTUM_PROLOGUE); \ strcat(q_command, a); \ strcat(q_command, b); \ strcat(q_command, QUANTUM_EPILOGUE); \ } while(0) dogma:~> cc grr2.c /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x79): undefined reference to `main' dogma:~> jcm -- "I drank WHAT ?!" - Socrates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message