Closed EmmanuelOga closed 3 years ago
Since Raylib does not work with MSVC due to being pure C99, there isn’t much I can do here.
Basically jaylib does not work on windows right now.
Just double checked, this is in the README.
Apparently raylib builds with mingw on windows. I found that there's a vcpkg for it: https://github.com/microsoft/vcpkg/tree/master/ports/raylib
I wonder if there's a way to tell janet where to look for a lib or dll.
OTOH having janet understand vcpkg could be interesting to solve the issue of cross platform 3rd party for a lot of useful dependencies ... 😃
Anyway, I don't expect that to happen as a solution to this particular issue, just a 2 cent idea.
I got it to compile by copying the initialization literals from raylib.h into jaylib/types.h
I also had to change a couple of function names (CloseWindow, ShowCursor and ShowBuffer i think) as they collided with functions in winuser.h (maybe also another windows header) but I suspect the include path I used (stock x64 native build tools command prompt for vs2017) was just overcrowded, didn't try to clean that up yet, but other than this jaylib compiles fine using Janet 1.9.1 jpm build
under windows 10
While using Janet 1.8.1 (installed with x64 exe installer) and VSCode 2017 or VSCode 2019 compiler, when I try to install the jaylib module I get an error C2099. Log attached below.