lispgames / cl-sdl2

Common Lisp bindings for SDL2 using C2FFI.
MIT License
304 stars 82 forks source link

Bad field reference in syswm.lisp #109

Closed yogavidya closed 6 years ago

yogavidya commented 6 years ago

OS: Windows 10. Both with SBCL and with LispWorks Pro 6.1.1, a new compilation error in cl-sdl2-20180430-git\src\syswm.lisp (unchanged from previous version):

**++++ Error in SDL2:GET-WINDOW-WM-INFO: 
  Unknown field :WIN for foreign-record type:
#<AUTOWRAP:FOREIGN-RECORD ANON-TYPE-4137818 2358979B>
Valid fields:
  :DUMMY (NIL)
  :WL (#:ANON-TYPE-4137820)
  :X11 (#:ANON-TYPE-4137819)

; *** 1 error detected, no fasl file produced.

Error: COMPILE-FILE-ERROR while compiling #<ASDF/LISP-ACTION:CL-SOURCE-FILE "sdl2" "syswm">

I'm not acquainted with autowrap, but I suppose the problem lies in the changed definition of a foreign structure.

mfiano commented 6 years ago

Yes, sorry, but syswm support is broken in the most recent Quicklisp dist which you have, and the feature is disabled entirely in git HEAD. If you upgrade, you won't get the error on Windows. Feel free to re-open this issue if that's not the case.

yogavidya commented 6 years ago

Thank you! As you said, the error disappeared.