New to GDC on ARM 32-bit Ubuntu
Johannes Pfau
nospam at example.com
Thu Jul 19 06:11:24 UTC 2018
Am Tue, 17 Jul 2018 04:51:04 +0000 schrieb Cecil Ward:
> 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 )
> ^
These files in /usr/include/d probably belong to the ldc package and
therefore are not compatible with gdc. gdc automatically picks up files
in /usr/include/d so this folder should not contain compiler-specific
files.
I think this has been fixed in more recent ubuntu releases. For now you
could uninstall ldc to see if this is really the problem.
--
Johannes
More information about the Digitalmars-d-learn
mailing list