Please help me passing a path to preprocessor

lrtaylor@micron.com lrtaylor@micron.com
Tue Nov 25 16:54:00 GMT 2003


That works so long as you don't have any spaces or characters that the
shell will try and interpret in the string.  It's cleaner and safer just
to put the single quotes around the string.  That way you don't have to
worry about what characters are in your string, and you can live a happy
and fulfilling life. :-)

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of jp.guillemin@free.fr

Hi Eljay, Mihnea,

Thank you for the solution,

For information I've found another one :

-DMYPATH=\"/usr/local/thepath\"

then the shell doesn't parse the " anymore

Regards

JP




More information about the Gcc-help mailing list