Problems related to GLFW on OSX
I read it already, but it seems to be another problem with me.
The command executed in the makefile
g++ -o main main.cpp -lglfw -framework Cocoa -framework OpenGL
The error I get when running the makefile is
Undefined symbols for architecture x86_64: "_IOMasterPort", referenced from: __glfwInitJoysticks in libglfw.a(cocoa_joystick.o) "_IOServiceMatching", referenced from: __glfwInitJoysticks in libglfw.a(cocoa_joystick.o) "_IOServiceGetMatchingServices", referenced from: __glfwInitJoysticks in libglfw.a(cocoa_joystick.o) "_IOIteratorNext", referenced from: __glfwInitJoysticks in libglfw.a(cocoa_joystick.o) "_IORegistryEntryCreateCFProperties", referenced from: __glfwInitJoysticks in libglfw.a(cocoa_joystick.o) "_IOCreatePlugInInterfaceForService", referenced from: __glfwInitJoysticks in libglfw.a(cocoa_joystick.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [all] Error 1
c ++ makefile opengl glfw macos
snarehanger
source share