Skip to content

Issues when trying to use SDL on Windows #1471

Description

@SabeDoesThings

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions