raylib-zig icon indicating copy to clipboard operation
raylib-zig copied to clipboard

Building examples

Open Zenchess opened this issue 4 years ago • 1 comments

Hi, I have tried using this library, here are the issues I've had with latest zig dev:

first , there is a compilation error in lib.zig line 65 something to do with the \ lines , C:\zigprojects\zigraylib\raylib-zig\lib.zig:65:27: error: expected ',', found invalid bytes \Warning: ^ C:\zigprojects\zigraylib\raylib-zig\lib.zig:66:72: note: invalid byte: 'd' \Unable to fetch git submodule(s) Assuming package folder is not under

so I changed that to a simple string, and it seemed to work.

Now when I do zig build examples I get the error:C:\zigprojects\zigraylib\raylib-zig\examples\core\basic_window.zig:17:5: error: use of undeclared identifier 'InitWindow' InitWindow(screenWidth, screenHeight, "raylib-zig [core] example - basic window");

I haven't changed anything, not sure if I"m doing something wrong. I see on top of the file the usingnamespace @import("raylib");

(i'm developing on windows)

Zenchess avatar Dec 02 '21 23:12 Zenchess

the first is about files not being allowed to have \r\n line endings. change all the zig files to be \n to fix it

nektro avatar Jan 08 '22 07:01 nektro