raylib-d how to program a simple moving circle.
Steven Schveighoffer
schveiguy at gmail.com
Sat Nov 30 02:36:58 UTC 2024
On Saturday, 30 November 2024 at 02:16:35 UTC, Alain De Vos wrote:
> After installing raylib library on Debian ,
> https://github.com/raysan5/raylib/releases
>
> Running "dub run" i get now the error :
>
> ```
>
> dub run
> Fetching raylib-d 5.5.1 (getting selected version)...
> Performing "debug" build using /usr/bin/gdc for x86_64.
> raylib-d 5.5.1: building configuration "library"...
> /home/x/.dub/packages/raylib-d-5.5.1/raylib-d/source/raylib/raylib_types.d:231:25: error: found ‘:’ when expecting ‘)’
> 231 | return Vector2(x:(x + width), y:y);
> | ^
> ```
You are using an older version of gdc. I don't follow the gdc
releases, but it's possible even the latest available doesn't
support named parameters, as that is a recent addition.
In any case, I still recommend using the raylib-d:install script,
and you can do this without having to install a library package
from your OS.
-Steve
More information about the Digitalmars-d-learn
mailing list