On 8/27/21 10:35 AM, Ki Rill wrote:
On Friday, 27 August 2021 at 13:54:18 UTC, Steven Schveighoffer wrote:
In the end, I got it to build and run, but I'd highly recommend just
linking against the `raylibdll.lib` and using the dll.
Steve, thank you! I got it working with `raylibdll.lib`!
Yes, either 3.5.0 or 3.7.0, they now build with 2 types of libs, static
and dynamic. The raylib.lib file is for static linking, the
raylibdll.lib file is for DLL.
Glad you got it working!
4. put `raylib.dll` and `raylibdll.lib` into your project's folder (into
the same directory, where you have `dub.json`)
You know, I taught a class using raylib and D (I learned a lot from your
video series, thanks!), and I didn't even think about just copy the
libraries to your project directory as a "step". Instead I had them put
in the /LIBDIR flags to wherever they installed it.
This way is MUCH easier, I think I'll switch to that.
dub in general has some rough edges when linking against libraries that
aren't in default locations. Having to edit the dub.json file is sub-par.
-Steve