请教如何在theos tools模板中使用c头文件,谢谢了·

RT,用theos创建的tools模板如何使用C函数,例如main.mm中extern “C”{#include “dlfcn.h”},然后报错
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/include/dlfcn.h:37:error: Unsupported architecture

我的makefile文件如下:
export ARCHS = armv7 armv7s arm64
include theos/makefiles/common.mk

TOOL_NAME = test
test_FILES = main.mm

include $(THEOS_MAKE_PATH)/tool.mk

请教各位大神,我该咋搞~ 不胜感激