Xref: utzoo comp.lang.c:11533 comp.unix.questions:8467 Path: utzoo!attcan!uunet!husc6!rutgers!att!mtune!codas!abcom!sdf From: sdf@abcom.ATT.COM (6362 Two Gateway Center Newark) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: cpp - the C language preprocessor Summary: Try using the backslash Keywords: cpp Message-ID: <6077@abcom.ATT.COM> Date: 27 Jul 88 11:51:33 GMT References: <173@trevan.UUCP> Organization: AT&T, Aurora, Colorado Lines: 29 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 tried the above on an Amdahl running UTS and it worked fine. In your case, try escaping the space with a backslash, as in: -Dfred='xxxx\ yyyy' The backslash will (or should) treat the space as a literal part of the string. ---------------- Stephen Fried AT&T Newark, NJ ---------------- -- ... Any resemblance between the above views and those of my employer, my terminal, or the view out my window are purely coincidental. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader. ----- Stephen Fried - AT&T, Newark, NJ - abcom!sdf