|
Oktatás * Programozás 2 * Szkriptnyelvek * Adator. prog. Teaching * Prog. for Data Sci. Félévek Linkek * kalendárium |
DLang /
Getting started with raylib under DSet UpI tried it under Linux. Create a project folder and enter it. The folder is empty. Create the files
$ cat dub.json
{
"name": "main",
"targetType": "executable",
"sourceFiles": [
"main.d"
]
}
$ cat main.d
#!/usr/bin/env rdmd
import std.stdio;
void main()
{
writeln("D Lang");
}
Then: # install the D binding $ dub add raylib-d # install the compiled and linkable raylib library (written in C) $ dub run raylib-d:install ... Automatically add these directives to your dub.json file? [Y/n] Y Finally, issue the following command: $ dub and the project should compile and run successfully. Raylib DemoModify
Compile and run: $ dub Done. Good luck! Screenshot |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |