digitalmars.D.learn - Adding include directories in sc.ini
- Nick Sabalausky (10/10) May 19 2005 I'm having trouble adding another "-I" switch to DFLAGS in sc.ini. This
- Andrew Fedoniouk (6/17) May 19 2005 My best guess:
- Nick Sabalausky (9/33) May 19 2005 The default line from an unmodified sc.ini is this:
- Andrew Fedoniouk (10/49) May 19 2005 Quotes allow to provide path names with spaces.
- Derek Parnell (13/29) May 19 2005 The ';' is used to delimit paths on a "-I" switch. Spaces are used to
I'm having trouble adding another "-I" switch to DFLAGS in sc.ini. This didn't seem to work: DFLAGS="-I% P%\..\src\phobos";"-IG:\DevLib\derelict-0.1\src" When I did that, dmd couldn't find the module I was trying to import. But, it worked fine when I put "-IG:\DevLib\derelict-0.1\src" on the command line. This also didn't work: DFLAGS="-I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src" That prevented dmd from finding anything in phobos! So, what syntax should I be using to get this to work right?
May 19 2005
My best guess: DFLAGS= -I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src DFLAGS= -I% P%\..\src\phobos;G:\DevLib\derelict-0.1\src Andrew. "Nick Sabalausky" <z a.a> wrote in message news:d6jro0$6lb$1 digitaldaemon.com...I'm having trouble adding another "-I" switch to DFLAGS in sc.ini. This didn't seem to work: DFLAGS="-I% P%\..\src\phobos";"-IG:\DevLib\derelict-0.1\src" When I did that, dmd couldn't find the module I was trying to import. But, it worked fine when I put "-IG:\DevLib\derelict-0.1\src" on the command line. This also didn't work: DFLAGS="-I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src" That prevented dmd from finding anything in phobos! So, what syntax should I be using to get this to work right?
May 19 2005
The default line from an unmodified sc.ini is this: DFLAGS= "-I% P%\..\src\phobos" So I assume there's some reason for the quotes to be there. But that said, all of these three seem to work fine: DFLAGS= -I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src DFLAGS= "-I% P%\..\src\phobos" -IG:\DevLib\derelict-0.1\src DFLAGS= "-I% P%\..\src\phobos" "-IG:\DevLib\derelict-0.1\src" "Andrew Fedoniouk" <news terrainformatica.com> wrote in message news:d6jstc$7gm$1 digitaldaemon.com...My best guess: DFLAGS= -I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src DFLAGS= -I% P%\..\src\phobos;G:\DevLib\derelict-0.1\src Andrew. "Nick Sabalausky" <z a.a> wrote in message news:d6jro0$6lb$1 digitaldaemon.com...I'm having trouble adding another "-I" switch to DFLAGS in sc.ini. This didn't seem to work: DFLAGS="-I% P%\..\src\phobos";"-IG:\DevLib\derelict-0.1\src" When I did that, dmd couldn't find the module I was trying to import. But, it worked fine when I put "-IG:\DevLib\derelict-0.1\src" on the command line. This also didn't work: DFLAGS="-I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src" That prevented dmd from finding anything in phobos! So, what syntax should I be using to get this to work right?
May 19 2005
Quotes allow to provide path names with spaces. And in case of default DFLAGS= "-I% P%\..\src\phobos" you can remove them. This should work too DFLAGS= -I% P%\..\src\phobos (My guess) Andrew. "Nick Sabalausky" <z a.a> wrote in message news:d6jthd$7td$1 digitaldaemon.com...The default line from an unmodified sc.ini is this: DFLAGS= "-I% P%\..\src\phobos" So I assume there's some reason for the quotes to be there. But that said, all of these three seem to work fine: DFLAGS= -I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src DFLAGS= "-I% P%\..\src\phobos" -IG:\DevLib\derelict-0.1\src DFLAGS= "-I% P%\..\src\phobos" "-IG:\DevLib\derelict-0.1\src" "Andrew Fedoniouk" <news terrainformatica.com> wrote in message news:d6jstc$7gm$1 digitaldaemon.com...My best guess: DFLAGS= -I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src DFLAGS= -I% P%\..\src\phobos;G:\DevLib\derelict-0.1\src Andrew. "Nick Sabalausky" <z a.a> wrote in message news:d6jro0$6lb$1 digitaldaemon.com...I'm having trouble adding another "-I" switch to DFLAGS in sc.ini. This didn't seem to work: DFLAGS="-I% P%\..\src\phobos";"-IG:\DevLib\derelict-0.1\src" When I did that, dmd couldn't find the module I was trying to import. But, it worked fine when I put "-IG:\DevLib\derelict-0.1\src" on the command line. This also didn't work: DFLAGS="-I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src" That prevented dmd from finding anything in phobos! So, what syntax should I be using to get this to work right?
May 19 2005
On Fri, 20 May 2005 01:14:43 -0400, Nick Sabalausky wrote:I'm having trouble adding another "-I" switch to DFLAGS in sc.ini. This didn't seem to work: DFLAGS="-I% P%\..\src\phobos";"-IG:\DevLib\derelict-0.1\src" When I did that, dmd couldn't find the module I was trying to import. But, it worked fine when I put "-IG:\DevLib\derelict-0.1\src" on the command line. This also didn't work: DFLAGS="-I% P%\..\src\phobos -IG:\DevLib\derelict-0.1\src" That prevented dmd from finding anything in phobos! So, what syntax should I be using to get this to work right?The ';' is used to delimit paths on a "-I" switch. Spaces are used to delimit multiple switches on a DFLAGS line. If there is a possibility of spaces being inside a path name, surround the entire -I switch in quotes. DFLAGS="-I% P%\..\src\phobos;G:\DevLib\derelict-0.1\src" or DFLAGS="-I% P%\..\src\phobos" -IG:\DevLib\derelict-0.1\src I use the quotes here because the % P% symbol might expand out to a path name that contains spaces. -- Derek Melbourne, Australia 20/05/2005 4:42:06 PM
May 19 2005