I am getting an error when I try and compile anything with the
GDC compiler which is coming up associated with source code
within a D include file which is not one of mine
I am using a Raspberry Pi with Ubuntu 16.04 and have just done an
"apt-get install gdc". Using ldc works fine.
The error is :
root@raspberrypi:~# gdc mac_hex.d -O3 -frelease
/usr/include/d/core/stdc/config.d:58:3: error: static if
conditional cannot be at global scope
static if( (void*).sizeof > int.sizeof )
^
This file has
==
version(Windows)
...
else version( Posix )
{
static if( (void*).sizeof > int.sizeof )
{
etc etc
==
It shows version
gdc --version
gdc (Ubuntu/Linaro 5.3.1-14ubuntu2) 5.3.1 20160413
Copyright (C) 2015 Free Software Foundation, Inc.
So that is unfortunately really old and I would love to get a new
package