This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Please help me passing a path to preprocessor


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]