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
$ c89 -DFRED=/usr/local/fred -E a.c
#line 1 "c:\\Users\\scott_n\\a.c"
$ 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"

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.
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
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:
Also: mailto:[hidden email]?subject=unsubscribe