problem using std.format on Arm

Johan j at j.nl
Sat Aug 8 18:48:45 UTC 2020


On Saturday, 8 August 2020 at 17:00:17 UTC, Jeremiah Glover wrote:
> I've been wanting to put together a programming to teach D. The 
> raspberry pi seemed like a good computer to use so everyone 
> could be guaranteed to have a computer to practice on. I've had 
> some trouble, however, getting a test project to compile, and 
> the first culprit lives in std.format.
>
> I tried both LDC and GDC by using `sudo apt install ldc` and 
> `sudo apt install gdc`
>
> compiling my test file with ldc gives these errors
>
> /usr/lib/ldc/arm-linux-gnueabihf/include/d/std/format.d(620): 
> Error: can only * a pointer, not a 'int'

> You can find my test file and a text file that makes the 
> program work at https://github.com/d-us-vb/diceware.

Seems to work fine with LDC 1.22:
https://d.godbolt.org/z/c14b1E

Perhaps the version of LDC and GDC that you are using is very old?

-Johan



More information about the Digitalmars-d-learn mailing list