www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Including multiple directories using the -I fag

reply Oliver Kania <Oliver_member pathlink.com> writes:
Hello !
I try to compile some SDL examples and want to include the SDL *.d files in the
searchpath for included modules. The dmd configuration file reads like this :

[Version]
version=7.51 Build 020

[Environment]
LIB="% P%\..\lib";\dm\lib
DFLAGS="-I% P%\..\src\phobos % P%\..\src\phobos\std"
LINKCMD=% P%\..\..\dm\bin\link.exe

how do I change the DFLAGS variable so that the SDL directory is included in the
search ? (I tried a long hard time ...)
Nov 20 2004
parent Charlie <Charlie_member pathlink.com> writes:
[Version]
version=7.51 Build 020

[Environment]
LIB="% P%\..\lib";\dm\lib
DFLAGS="-I% P%\..\src\phobos -I% P%\..\src\phobos\std"
LINKCMD=% P%\..\..\dm\bin\link.exe

You must include -I for every directory

Charlie

In article <cnp7eb$2tfd$1 digitaldaemon.com>, Oliver Kania says...
Hello !
I try to compile some SDL examples and want to include the SDL *.d files in the
searchpath for included modules. The dmd configuration file reads like this :

[Version]
version=7.51 Build 020

[Environment]
LIB="% P%\..\lib";\dm\lib
DFLAGS="-I% P%\..\src\phobos % P%\..\src\phobos\std"
LINKCMD=% P%\..\..\dm\bin\link.exe

how do I change the DFLAGS variable so that the SDL directory is included in the
search ? (I tried a long hard time ...)
Nov 22 2004