Re: Why -I flag does not work?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
On Saturday, 9 February 2019 at 11:40:57 UTC, Victor Porton wrote: On Saturday, 9 February 2019 at 08:35:53 UTC, JN wrote: On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: Why does -I flag in DFLAGS does not work? (Ubuntu Linux) I'm no expert on dub, but it's possible that

Re: Why -I flag does not work?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: Why does -I flag in DFLAGS does not work? (Ubuntu Linux) https://github.com/dlang/dub/issues/1645

Re: Should D file end with newline?

2019-02-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, February 9, 2019 2:19:27 PM MST Victor Porton via Digitalmars- d-learn wrote: > ISO C++ specifies that the C++ file must end with a newline. > > Should D file end with newline, too? No, there is no need to end D files with a newline. I would guess that the vast majority of D files

Re: Should D file end with newline?

2019-02-09 Thread sarn via Digitalmars-d-learn
On Saturday, 9 February 2019 at 21:19:27 UTC, Victor Porton wrote: ISO C++ specifies that the C++ file must end with a newline. Should D file end with newline, too? I'm sure you could mostly get away without one, but POSIX says that all text files should end with a newline. There are some

Should D file end with newline?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
ISO C++ specifies that the C++ file must end with a newline. Should D file end with newline, too?

Re: Why -I flag does not work?

2019-02-09 Thread DanielG via Digitalmars-d-learn
On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: Why does -I flag in DFLAGS does not work? (Ubuntu Linux) Try adding the -i flag as well ("include imported modules in the compilation"), or setting both importPaths and sourcePaths in dub.json. I'm not certain that will

Re: Why -I flag does not work?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
On Saturday, 9 February 2019 at 10:32:36 UTC, DanielG wrote: On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: Why does -I flag in DFLAGS does not work? (Ubuntu Linux) Try adding the -i flag as well ("include imported modules in -i in DFLAGS does not help. -I works when

Re: Why -I flag does not work?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
On Saturday, 9 February 2019 at 08:35:53 UTC, JN wrote: On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: Why does -I flag in DFLAGS does not work? (Ubuntu Linux) I'm no expert on dub, but it's possible that it's overriding the import path anyway. One of the main points of

Why -I flag does not work?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
For this project: https://github.com/vporton/xml-boiler-dlang/tree/85b5587f50617ad1b001c035c72a5780a1e69c24 $ DFLAGS="-I/usr/local/include/d/librdf -L-L/usr/local/lib" dub build --compiler=dmd --build=unittest Performing "unittest" build using dmd for x86_64. xml-boiler-dlang ~master:

Re: Why -I flag does not work?

2019-02-09 Thread Victor Porton via Digitalmars-d-learn
On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: $ DFLAGS="-I/usr/local/include/d/librdf -L-L/usr/local/lib" dub build --compiler=dmd --build=unittest ... Why does -I flag in DFLAGS does not work? (Ubuntu Linux) This does not work too: $

Re: Why -I flag does not work?

2019-02-09 Thread JN via Digitalmars-d-learn
On Saturday, 9 February 2019 at 08:15:36 UTC, Victor Porton wrote: Why does -I flag in DFLAGS does not work? (Ubuntu Linux) I'm no expert on dub, but it's possible that it's overriding the import path anyway. One of the main points of dub is that you shouldn't have to handle the import paths