On Tuesday, 27 February 2024 at 03:43:56 UTC, Liam McGillivray wrote:
Raylib looks promising. I installed it along with your Raylib-d. I managed to build the example you provided with dub, but trying to use it in it's own dub project in a separate directory isn't working. Just copying and pasting `app.d` from the very example you provided results in a huge wall of errors, mostly "undefined reference to [some function]".

Nevermind this. I just needed to add `libs "raylib"` to dub.sdl. I didn't think I would need to specify the libraries in the project when they are accessed through an external library. Now I know.

Looking at the code examples on the Raylib and SFML website, they look similar in complexity of getting started, but I like it that the Raylib website has lots of simple demonstration programs on the website with the code provided. This is a great way to help with learning.
https://www.raylib.com/examples.html

So far it's been working when I try to do their C++ examples in D.
  • Error when using... Liam McGillivray via Digitalmars-d-learn
    • Re: Error w... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Err... Liam McGillivray via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: Error w... Paul Backus via Digitalmars-d-learn
      • Re: Err... Liam McGillivray via Digitalmars-d-learn
        • Re:... Liam McGillivray via Digitalmars-d-learn
          • ... Steven Schveighoffer via Digitalmars-d-learn
            • ... Liam McGillivray via Digitalmars-d-learn
              • ... Liam McGillivray via Digitalmars-d-learn
                • ... Danilo via Digitalmars-d-learn
            • ... Liam McGillivray via Digitalmars-d-learn
              • ... Danilo via Digitalmars-d-learn
                • ... Liam McGillivray via Digitalmars-d-learn
                • ... monkyyy via Digitalmars-d-learn
              • ... Danilo via Digitalmars-d-learn
        • Re:... Steven Schveighoffer via Digitalmars-d-learn
    • Re: Error w... Liam McGillivray via Digitalmars-d-learn
      • Re: Err... Liam McGillivray via Digitalmars-d-learn

Reply via email to