Jack-Ji / jok

A minimal 2d/3d game framework for @ziglang.
MIT License
172 stars 6 forks source link

cp_demo not compiling #12

Closed MartinAbilev closed 3 months ago

MartinAbilev commented 3 months ago

src\main.zig:7:14: error: type '@TypeOf(null)' does not support field access var world: cp.World = undefined;

me new to zig so maybe something not get here

Jack-Ji commented 3 months ago

It compiles and runs well on my machine. Are you using latest zig compiler?

MartinAbilev commented 3 months ago

i use zig-windows-x86_64-0.14.0-dev.125+a016ca617

MartinAbilev commented 3 months ago

ok i found problem is when i copy sp demo in my clean project it not compile but i found from this repo it works so probably i miss something in my build.zig

Jack-Ji commented 3 months ago

Maybe the link option is missing? chipmunk isn't linked by default, please see last parameter of jok.createGame.

MartinAbilev commented 3 months ago

yup thats the reason thanks :)