-
Notifications
You must be signed in to change notification settings - Fork 181
Issues when trying to use SDL on Windows #1471
Copy link
Copy link
Open
Description
Hi! I'm trying to get Carp working on windows and when I try to run this example
(load-and-use SDL)
(Project.config "title" "Minimal")
(defn tick [state]
(+ state 10))
(defn draw [app rend state]
(bg rend &(rgb (/ @state 2) (/ @state 3) (/ @state 4))))
(defn main []
(let [app (SDLApp.create "The Minimalistic Color Generator" 400 300)
state 0]
(SDLApp.run-with-callbacks &app SDLApp.quit-on-esc tick draw state)))
I get this
> carp main.carp -x
clang-cl: error: no input files
carp.exe: callCommand: clang-cl.exe -o out\Minimal -I C:\Carp/core/ -D_CRT_SECURE_NO_WARNINGS -DSDL_MAIN_HANDLED -Wno-pragma-pack -IC:\REDACTED
cpkg\installed-windows\include\SDL2\ /link C:\REDACTED
cpkg\installed-windows\lib\SDL2.lib C:\REDACTED
cpkg\installed-windows\lib\manual-link\SDL2main.lib out\main.c (exit 1): failed
any thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels