79809323

Date: 2025-11-04 19:40:26
Score: 3.5
Natty:
Report link

Looks like the compiler can't find GLFW's installation directory for includes and libs. How did you get GLFW on your machine? if you installed it via homebrew you should compile using:

(Apple Silicon)

clang++ main.cpp -o app \
  -I/opt/homebrew/include \
  -L/opt/homebrew/lib \
  -lglfw -framework Cocoa -framework OpenGL -framework IOKit

(Intel Macs)

clang++ main.cpp -o app \
  -I/usr/local/include \
  -L/usr/local/lib \
  -lglfw -framework Cocoa -framework OpenGL -framework IOKit

So I'd find the installation directory and compile via

clang++ main.cpp -o app \
  -I/path/to/installation/dir/include \
  -L/path/to/installation/dir/lib \
  -lglfw -framework Cocoa -framework OpenGL -framework IOKit

Also you might wanna try compiling via command line to get a clearer picture then vscode's.

Reasons:
  • RegEx Blacklisted phrase (3): did you get
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Emily Dror