Re: Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.

2019-08-07 Thread Stefanos Baziotis via D.gnu
On Wednesday, 7 August 2019 at 05:54:58 UTC, Iain Buclaw wrote: Maybe ldc should be fixed to install compiler-specific modules inside a compiler-specific directory? There may be a configure switch to control that. It seems there is. I was not aware of the problem when installing so I did

Re: Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.

2019-08-06 Thread Stefanos Baziotis via D.gnu
On Tuesday, 6 August 2019 at 16:38:56 UTC, Johannes Pfau wrote: gdc includes everything in /usr/include/d automatically. The assumption is that distributions will only install global D files there which are compiler-independent, just like in /usr/include. Unfortunately dmd and/or ldc still

Re: Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.

2019-08-06 Thread Stefanos Baziotis via D.gnu
On Tuesday, 6 August 2019 at 12:02:05 UTC, Boris Carvajal wrote: At least gdc from gcc9 doesn't support static foreach, probably it's reading imports from other d compiler install. Yes it seems so. I installed LDC from source recently, maybe that made the conflict. I don't know how to fix it b

Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.

2019-08-06 Thread Stefanos Baziotis via D.gnu
Hello everyone, I just installed GDC with sudo apt-get install gdc and I can't compile a simple hello world program. I get e.g. static foreach errors: /usr/local/include/d/core/internal/hash.d:333:16: error: basic type expected, not foreach static foreach (i; 0 .. T.sizeof / size_t