Vladar4 / sdl2_nim

Wrapper of the SDL 2 library for the Nim language.
Other
147 stars 24 forks source link

Cannot compile sdl2_nim under Windows 10.0.16299 with sdl_image #15

Closed Samulus closed 6 years ago

Samulus commented 6 years ago

I've been compiling successfully with Arch Linux for some time now but when I rebooted and tried to compile under Windows 10 I recieved the following error message. I don't know enough about Nim macros to fix this so the problem might be PEBKAC. The problem seems to happen with sdl_image.

   ... Hint: sdl_image [Processing]
   ... C:\Users\sam\.nimble\pkgs\sdl2_nim-2.0.7.0\sdl2\sdl_image.nim(99, 20) template/generic instantiation from here
   ... C:\Users\sam\.nimble\pkgs\sdl2_nim-2.0.7.0\sdl2\sdl_image.nim(43, 22) template/generic instantiation from here
   ... C:\Users\sam\.nimble\pkgs\sdl2_nim-2.0.7.0\sdl2\private\version.nim(79, 27) Error: expression '2002' is of type 'int literal(2002)' and has to be discarded

Nim Version:

C:\Windows\System32>nim --version Nim Compiler Version 0.17.3 [Windows: i386] Copyright (c) 2006-2017 by Andreas Rumpf

git hash: d1e10f9aa3e033414fb924e4f90736e46fde8256 active boot switches: -d:release

My .nimble file:

version = "1.0" author = "Samuel Vargas" description = "Game" license = "MIT"

srcDir = "src" bin = @["game"]

requires "sdl2_nim >= 2.0.7.0" requires "easygl >= 0.1.0"

Samulus commented 6 years ago

Nvm it was PEBKAC, I saw someone had the same issue as #12 and fixed it with nimble install sdl2_nim@#head