Xcode上的C ++错误“架构x86_64的未定义符号”“_CFRelease”

时间:2018-04-23 20:49:41

标签: c++ xcode

我是c ++的新手。当我在Xcode上构建main.cpp时,我收到了这条消息:

Undefined symbols for architecture x86_64:
  "_CFRelease", referenced from:
      _main in main.o
      print_attributes(IDeckLink*) in main.o
      print_output_mode(char const*, unsigned int, IDeckLinkDisplayMode*, IDeckLinkOutput*) in main.o
      print_input_mode(char const*, unsigned int, IDeckLinkDisplayMode*, IDeckLinkInput*) in main.o
  "_CFStringGetCString", referenced from:
      _main in main.o
      print_attributes(IDeckLink*) in main.o
      print_output_mode(char const*, unsigned int, IDeckLinkDisplayMode*, IDeckLinkOutput*) in main.o
      print_input_mode(char const*, unsigned int, IDeckLinkDisplayMode*, IDeckLinkInput*) in main.o
  "_CreateDeckLinkIteratorInstance", referenced from:
      _main in main.o

我研究了stackoverflow,发现Alex Reche Martinez建议将“-framework CoreFoundation”添加到项目的链接命令行。但我不知道哪个文件包含链接命令行。有人可以帮忙吗?提前谢谢!

0 个答案:

没有答案