Hello! I'm trying to compile this code into Windows (on Linux all works).
import nico
proc game_init() =
echo "init"
proc game_update(dt: Pfloat) =
# echo "update: ", dt
discard
proc game_draw() =
cls()
setColor(7)
print("hello world", 42, 60)
nico.init("test", "test_game")
nico.createWindow("test_game", 128, 128, 4)
nico.run(game_init, game_update, game_draw)
I get the following error:
C:\Users\Erik\.nimble\pkgs\nimPNG-0.2.2\nimPNG.nim(333, 18) template/generic instantiation from here
lib\system.nim(408, 10) Error: type mismatch: got <seq[RGBA8], nil>
but expected one of:
proc `==`[T](x, y: seq[T]): bool
first type mismatch at position: 2
required type: seq[T]
but expression 'nil' is of type: nil
expression: src.palette == nil
Tell me, please, what could be the problem?
Now I get the following:
C:\Users\Erik\.nimble\pkgs\nico-0.1.0\nico\backends\sdl2.nim(1134, 16) Error: ambiguous call; both system.$(x: int)[declared in lib\system.nim(1864, 5)] and system.$(x: uint64)[declared in lib\system\strmantle.nim(282, 5)] match for: (uint8)