Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

and for OSX?


see parent reply


  make
  cc -o obj/Darwin/x86_64/main obj/Darwin/x86_64/main.o -Wl,-framework,SDL2 -Wl,-framework,SDL2_ttf
  ld: framework not found SDL2
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [obj/Darwin/x86_64/main] Error 1
---

Yes, I have both frameworks installed. I even did the brew commands just for S&G ... same result after make command.


Do you have "SDL2.framework" and "SDL2_ttf.framework" installed under "/Library/Frameworks"?


Yes


I don't know then. This is what I get on a fresh compile - note that it even specifies the framework paths in the command line options:

  antimass@gem:~/github/ChrysaLisp$ make
  echo x86_64 > arch
  echo Darwin > platform
  unzip -nq snapshot.zip
  cc -c -nostdlib -fno-exceptions \
    -I/Library/Frameworks/SDL2.framework/Headers/ \
    -I/Library/Frameworks/SDL2_ttf.framework/Headers/ \
    -o obj/Darwin/x86_64/main.o main.c
  cc -o obj/Darwin/x86_64/main obj/Darwin/x86_64/main.o -Wl,-framework,SDL2 -Wl,-framework,SDL2_ttf
  antimass@gem:~/github/ChrysaLisp$




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: