New to GDC on ARM 32-bit Ubuntu

Cecil Ward d at cecilward.com
Tue Jul 17 04:51:04 UTC 2018


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 at 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


More information about the Digitalmars-d-learn mailing list