clang出错,求各位大神帮忙

”main.mm:1:20: error: unknown type name ‘CFNotificationCenterRef’
static void Reboot(CFNotificationCenterRef center, void *observer, CFStr…
^
main.mm:1:68: error: unknown type name ‘CFStringRef’
static void Reboot(CFNotificationCenterRef center, void *observer, CFStringRef …
^
main.mm:1:114: error: unknown type name ‘CFDictionaryRef’
…void *observer, CFStringRef name, const void *object, CFDictiona…
^
main.mm:3:5: error: use of undeclared identifier ‘NSLog’
NSLog(@“iOSRE: reboot”);
^
main.mm:4:5: error: use of undeclared identifier ‘system’
system(“reboot”);
^
main.mm:9:5: error: use of undeclared identifier ‘NSLog’
NSLog(@“iOSRE: rootdaemond is launched!”);
^
main.mm:10:37: error: use of undeclared identifier
‘CFNotificationCenterGetDarwinNotifyCenter’
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyC…
^
main.mm:10:96: error: use of undeclared identifier ‘CFSTR’
…NULL, Reboot, CFSTR(“com.wuxian.rootdaemond”), NULL, CFNotificat…
^
main.mm:10:82: error: use of undeclared identifier ‘NULL’
…NULL, Reboot, CFSTR(“com.wuxian.rootdaemond”), NULL, CFNotificat…
^
main.mm:10:129: error: use of undeclared identifier ‘NULL’
…NULL, Reboot, CFSTR(“com.wuxian.rootdaemond”), NULL, CFNotificat…
^
main.mm:10:143: error: use of undeclared identifier
‘CFNotificationSuspensionBehaviorCoalesce’
…NULL, Reboot, CFSTR(“com.wuxian.rootdaemond”), NULL, CFNotificat…
^
main.mm:11:5: error: use of undeclared identifier ‘CFRunLoopRun’
CFRunLoopRun(); // keep it running in background
^
12 errors generated.

我在makefile里framework增加了CoreFoundation了,可是还是这样,求各位帮忙看看

我是按照http://bbs.iosre.com/t/run-a-daemon-as-root-on-ios/212这个例子来练习的,到了scp上一步出现了这个问题 :sweat:

这是输入的command-------clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -o iOSRERootDaemonTester -arch armv7 main.mm

import corefoundation了吗

我只是在makefile里设置了一下,rootdaemond_FRAMEWORKS = UIKit CoreFoundation
还需要另外导入吗?