Date: Thu, 31 May 2001 15:33:11 +0100 From: j mckitrick <jcm@FreeBSD-uk.eu.org> To: Don Dugger <dugger@hotlz.com> Cc: freebsd-questions@freebsd.org Subject: Re: what's wrong with this macro? Message-ID: <20010531153311.A85342@dogma.freebsd-uk.eu.org> In-Reply-To: <3B165467.9B71982@hotlz.com>; from dugger@hotlz.com on Thu, May 31, 2001 at 07:25:43AM -0700 References: <20010531143315.A83651@dogma.freebsd-uk.eu.org> <3B164FDD.B59D380A@hotlz.com> <20010531151330.A84734@dogma.freebsd-uk.eu.org> <3B165467.9B71982@hotlz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
| 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010531153311.A85342>