Quartz:构建x86_64体系结构时未定义的符号

时间:2012-06-11 16:34:19

标签: c++ xcode core-graphics quartz-2d

我已经创建了一个控制台项目,并将Quartz.Framework,QuartzCore.Framework添加到我的应用程序中。

但在链接期间会出现以下错误

Undefined symbols for architecture x86_64:
  "_CGColorCreateGenericRGB", referenced from:
      GifFlippingBook::GifFlippingBookCreator::CreateGifFlippingBook(int, int, double, std::string, int, std::string, std::string, int, std::string, std::string, std::string) in main.o
  "_CGDataProviderCreateWithFilename", referenced from:
      GifFlippingBook::GifFlippingBookCreator::CreateGifFlippingBook(int, int, double, std::string, int, std::string, std::string, int, std::string, std::string, std::string) in main.o
  "_CGImageCreateWithPNGDataProvider", referenced from:
      GifFlippingBook::GifFlippingBookCreator::CreateGifFlippingBook(int, int, double, std::string, int, std::string, std::string, int, std::string, std::string, std::string) in main.o

任何想法为什么?

2 个答案:

答案 0 :(得分:0)

您还必须添加CoreGraphics框架。

答案 1 :(得分:0)

Hah在我自己找到了答案

CoreGraphics框架是ApplicationServices.Framework的一部分,所以我只需要将它添加到链接库中。