On Saturday, 30 November 2024 at 01:28:44 UTC, Alain De Vos wrote:
vscode no longer complains.
But "dub run" gives,
```
dub run
Starting Performing "debug" build using /usr/bin/dmd for
x86_64.
Up-to-date raylib-d 5.5.1: target for configuration [library]
is up to date.
Building myprogram ~master: building configuration
[application]
Linking myprogram
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
/home/x/.dub/cache/myprogram/~master/build/application-debug-UNjmUV2QooI2uGdw4N2cYw/myprogram.o:
in function `_Dmain':
/mnt/xxx_source/Languages_ok/dlangtut/dub/69_raylib_error/source/app.d:16:(.text._Dmain[_Dmain]+0xe):
undefined reference to `WindowShouldClose'
```
This is because you didn't have the library available.
I highly recommend using the raylib-d:install script as mentioned
in the
[README](https://github.com/schveiguy/raylib-d?tab=readme-ov-file#method-1-install-appropriate-raylib-library-with-helper-tool)
Not only does this copy the *exactly correct* library to your
local directory, it also offers to update your dub.json to
provide the appropriate linker directives for linking.
-Steve