Xref: utzoo comp.lang.c:11527 comp.unix.questions:8460 Path: utzoo!utgpu!attcan!uunet!husc6!rutgers!att!cuuxb!mmengel From: mmengel@cuuxb.ATT.COM (~XT4103000~Marc Mengel~C25~G25~6184~) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: cpp - the C language preprocessor Summary: Quoting strikes again Keywords: cpp Message-ID: <1945@cuuxb.ATT.COM> Date: 27 Jul 88 14:30:36 GMT References: <173@trevan.UUCP> Reply-To: mmengel@cuuxb.UUCP (PUT YOUR NAME HERE) Organization: AT&T, Data Systems Group, Lisle, IL Lines: 24 In article <173@trevan.UUCP> trevor@trevan.UUCP writes: > > Please can someone tell me how I can use the -D option to define >a name with a space in it ie > >#define fred xxxx yyyy > > I have tried alot of combinations like -Dfred='xxxx yyyy' but >nothing seems to work. This is using Microport System V/286. I am assuming this is breaking in a Makefile, since that works on most systems I have seen; problem is, in a Makefile, make strips off the quotes an hands the option to the shell without them; so you end up doing someting bizarre like CFLAGS= "-Dfred='xxx yyy'" so make eats the ""s and the shell still gets handed the ''s -- Marc Mengel attmail!mmengel {lll-crg|mtune|ihnp4}!cuuxb!mmengel