Re: MinGW-users Digest, Vol 105, Issue 10

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: MinGW-users Digest, Vol 105, Issue 10

Scott Neugroschl
Date: Tue, 24 Feb 2015 16:56:54 -0500
From: "Earnie" <[hidden email]>
Subject: Re: [Mingw-users] Automatic path  translation....

> I don't understand this.  If you use -DMY_MACRO=//usr/local/mypath then MSYS simply removes the first / and passes that to the
> program.  Sed shouldn't be needed.

Not quite:

$ cat a.c
FRED
$ c89 -DFRED=/usr/local/fred -E a.c
#line 1 "c:\\Users\\scott_n\\a.c"
C:/MinGW/msys/1.0/local/fred
$ c89 -DFRED=//usr/local/fred -E a.c
#line 1 "c:\\Users\\scott_n\\a.c"
/ /usr/local/fred
$ c89 -DFRED='//usr\local\fred' -E a.c
#line 1 "c:\\Users\\scott_n\\a.c"
/usr/local/fred


Note that when I use //usr/local/fred I get a leading "/ " on the output.
Only //usr\local\fred  gives the proper output.



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe