cpp - the C language preprocessor

~XT4103000~Marc Mengel~C25~G25~6184~ mmengel at cuuxb.ATT.COM
Thu Jul 28 00:30:36 AEST 1988


In article <173 at trevan.UUCP> trevor at 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



More information about the Comp.lang.c mailing list