我想在 Xcode 4 中构建 HID Explorer 示例,但是当我尝试构建时,出现以下错误(无论是 32 还是 64):
Undefined symbols for architecture x86_64:
"_DisposeMenu", referenced from:
_Handle_WindowEvents in main.o
"_GetControl32BitMaximum", referenced from:
_Handle_EventControlDraw in main.o
"_GetControl32BitMinimum", referenced from:
_Handle_EventControlDraw in main.o
"_GetControl32BitValue", referenced from:
_Handle_EventControlDraw in main.o
"_InvalWindowRect", referenced from:
_SetElementTitle in main.o
"_SetControl32BitMaximum", referenced from:
_Update_WindowElementInfo in main.o
"_SetControl32BitMinimum", referenced from:
_Update_WindowElementInfo in main.o
"_SetControl32BitValue", referenced from:
_DisplayCurrentDeviceElementValue in main.o
"_SetControlMaximum", referenced from:
_Build_DeviceMenu in main.o
_Build_ElementMenu in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我假设,缺少一个框架。谁能告诉我,是哪一个?
已经包含的框架有:CoreFoundation.framework、IOKit.framework、Carbon.framework