Problems linking against GLFW in OSXGLFW OSX शेर
पर makefile में इस मुद्दे को जोड़ने मैं यह पहले से ही पढ़ा है, लेकिन यह मेरे साथ एक अलग मुद्दा हो रहा है।
makefile में आदेश जा रहा भाग गया है,
g++ -o main main.cpp -lglfw -framework Cocoa -framework OpenGL
त्रुटि जब मैं चलाने makefile है कि मैं प्राप्त कर रहा हूँ,
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
आपको बहुत बहुत धन्यवाद! – snarehanger
आपने मेरा दिन बचाया :-) – Mayoneez
बस कुछ विवरण यहां जोड़ना: IOKit ढांचे की आवश्यकता है क्योंकि इसका हाल ही में जोड़ा गया ओएस एक्स जॉयस्टिक समर्थन द्वारा उपयोग किया जाता है। – elmindreda