Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 20, 2005 Adding include directories in sc.ini | ||||
---|---|---|---|---|
| ||||
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 20, 2005 Re: Adding include directories in sc.ini | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | 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 20, 2005 Re: Adding include directories in sc.ini | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Fedoniouk | 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 20, 2005 Re: Adding include directories in sc.ini | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | 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 20, 2005 Re: Adding include directories in sc.ini | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | 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 |
Copyright © 1999-2021 by the D Language Foundation